import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/component/canvas.d.ts',
  content: "/*\n * Copyright (c) 2021-2023 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit ArkUI\n */\n/**\n * Import the drawing canvas type object for Canvas.\n *\n * @typedef { import('../api/@ohos.graphics.drawing').default.Canvas } DrawingCanvas\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare type DrawingCanvas = import('../api/@ohos.graphics.drawing').default.Canvas;\n/**\n * Filling style algorithm, which determines whether a point is within or outside the path. The following\n *    two configurations are supported:\n * \"evenodd\": odd and even round rule\n * \"nonzero\": (Default) Non-zero Wrap Rules\n *\n * @typedef { \"evenodd\" | \"nonzero\" } CanvasFillRule\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 8\n */\n/**\n * Filling style algorithm, which determines whether a point is within or outside the path. The following\n *    two configurations are supported:\n * \"evenodd\": odd and even round rule\n * \"nonzero\": (Default) Non-zero Wrap Rules\n *\n * @typedef { \"evenodd\" | \"nonzero\" } CanvasFillRule\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * Filling style algorithm, which determines whether a point is within or outside the path. The following\n *    two configurations are supported:\n * \"evenodd\": odd and even round rule\n * \"nonzero\": (Default) Non-zero Wrap Rules\n *\n * @typedef { \"evenodd\" | \"nonzero\" } CanvasFillRule\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * Filling style algorithm, which determines whether a point is within or outside the path. The following\n *    two configurations are supported:\n * \"evenodd\": odd and even round rule\n * \"nonzero\": (Default) Non-zero Wrap Rules\n *\n * @typedef { \"evenodd\" | \"nonzero\" } CanvasFillRule\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare type CanvasFillRule = \"evenodd\" | \"nonzero\";\n/**\n * Specifies the attribute of drawing the end of each line segment. The following configurations are supported:\n * \"butt\": (Default) Segment Ends in Square\n * \"round\": Segment ends in a circle\n * \"square\": The end of the segment ends in a square, but a rectangular area is added that is the same width\n *    as the segment and is half the thickness of the segment.\n *\n * @typedef { \"butt\" | \"round\" | \"square\" } CanvasLineCap\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 8\n */\n/**\n * Specifies the attribute of drawing the end of each line segment. The following configurations are supported:\n * \"butt\": (Default) Segment Ends in Square\n * \"round\": Segment ends in a circle\n * \"square\": The end of the segment ends in a square, but a rectangular area is added that is the same width\n *    as the segment and is half the thickness of the segment.\n *\n * @typedef { \"butt\" | \"round\" | \"square\" } CanvasLineCap\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * Specifies the attribute of drawing the end of each line segment. The following configurations are supported:\n * \"butt\": (Default) Segment Ends in Square\n * \"round\": Segment ends in a circle\n * \"square\": The end of the segment ends in a square, but a rectangular area is added that is the same width\n *    as the segment and is half the thickness of the segment.\n *\n * @typedef { \"butt\" | \"round\" | \"square\" } CanvasLineCap\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * Specifies the attribute of drawing the end of each line segment. The following configurations are supported:\n * \"butt\": (Default) Segment Ends in Square\n * \"round\": Segment ends in a circle\n * \"square\": The end of the segment ends in a square, but a rectangular area is added that is the same width\n *    as the segment and is half the thickness of the segment.\n *\n * @typedef { \"butt\" | \"round\" | \"square\" } CanvasLineCap\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare type CanvasLineCap = \"butt\" | \"round\" | \"square\";\n/**\n * Sets the attribute of how two connected parts (line segments, arcs, and curves) whose length is not 0\n *    are connected together. The following three configurations are supported:\n * \"bevel\": Fill the ends of the connected sections with an additional triangle-base area,\n *    each with its own independent rectangular corner.\n * \"miter\": (Default) An additional diamond region is formed by extending the outer edges of the connected portions\n *    so that they intersect at a point.\n * \"round\": Draw the shape of the corner by filling in an additional sector with the center at the end of the\n *    connected section. The radius of the fillet is the width of the segment.\n *\n * @typedef { \"bevel\" | \"miter\" | \"round\" } CanvasLineJoin\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 8\n */\n/**\n * Sets the attribute of how two connected parts (line segments, arcs, and curves) whose length is not 0\n *    are connected together. The following three configurations are supported:\n * \"bevel\": Fill the ends of the connected sections with an additional triangle-base area,\n *    each with its own independent rectangular corner.\n * \"miter\": (Default) An additional diamond region is formed by extending the outer edges of the connected portions\n *    so that they intersect at a point.\n * \"round\": Draw the shape of the corner by filling in an additional sector with the center at the end of the\n *    connected section. The radius of the fillet is the width of the segment.\n *\n * @typedef { \"bevel\" | \"miter\" | \"round\" } CanvasLineJoin\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * Sets the attribute of how two connected parts (line segments, arcs, and curves) whose length is not 0\n *    are connected together. The following three configurations are supported:\n * \"bevel\": Fill the ends of the connected sections with an additional triangle-base area,\n *    each with its own independent rectangular corner.\n * \"miter\": (Default) An additional diamond region is formed by extending the outer edges of the connected portions\n *    so that they intersect at a point.\n * \"round\": Draw the shape of the corner by filling in an additional sector with the center at the end of the\n *    connected section. The radius of the fillet is the width of the segment.\n *\n * @typedef { \"bevel\" | \"miter\" | \"round\" } CanvasLineJoin\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * Sets the attribute of how two connected parts (line segments, arcs, and curves) whose length is not 0\n *    are connected together. The following three configurations are supported:\n * \"bevel\": Fill the ends of the connected sections with an additional triangle-base area,\n *    each with its own independent rectangular corner.\n * \"miter\": (Default) An additional diamond region is formed by extending the outer edges of the connected portions\n *    so that they intersect at a point.\n * \"round\": Draw the shape of the corner by filling in an additional sector with the center at the end of the\n *    connected section. The radius of the fillet is the width of the segment.\n *\n * @typedef { \"bevel\" | \"miter\" | \"round\" } CanvasLineJoin\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare type CanvasLineJoin = \"bevel\" | \"miter\" | \"round\";\n/**\n * Indicates the attribute of the current text direction. The options are as follows:\n * \"inherit\": (Default) Inherit current Canvas component settings\n * \"ltr\": The text direction is left to right.\n * \"rtl\": The text direction is from right to left.\n *\n * @typedef { \"inherit\" | \"ltr\" | \"rtl\" } CanvasDirection\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 8\n */\n/**\n * Indicates the attribute of the current text direction. The options are as follows:\n * \"inherit\": (Default) Inherit current Canvas component settings\n * \"ltr\": The text direction is left to right.\n * \"rtl\": The text direction is from right to left.\n *\n * @typedef { \"inherit\" | \"ltr\" | \"rtl\" } CanvasDirection\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * Indicates the attribute of the current text direction. The options are as follows:\n * \"inherit\": (Default) Inherit current Canvas component settings\n * \"ltr\": The text direction is left to right.\n * \"rtl\": The text direction is from right to left.\n *\n * @typedef { \"inherit\" | \"ltr\" | \"rtl\" } CanvasDirection\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * Indicates the attribute of the current text direction. The options are as follows:\n * \"inherit\": (Default) Inherit current Canvas component settings\n * \"ltr\": The text direction is left to right.\n * \"rtl\": The text direction is from right to left.\n *\n * @typedef { \"inherit\" | \"ltr\" | \"rtl\" } CanvasDirection\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare type CanvasDirection = \"inherit\" | \"ltr\" | \"rtl\";\n/**\n * Describes the alignment mode for drawing text. The options are as follows:\n * \"center\": The text is centered.\n * \"end\": Where text aligns lines end (Left alignment refers to the local from left to right,\n *    and right alignment refers to the local from right to left)\n * \"left\": (Default) The text is left-aligned.\n * \"right\": The text is right-aligned.\n * \"start\": Where the text snap line begins (Left alignment refers to the local from left to right,\n *    and right alignment refers to the local from right to left)\n *\n * @typedef { \"center\" | \"end\" | \"left\" | \"right\" | \"start\" } CanvasTextAlign\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 8\n */\n/**\n * Describes the alignment mode for drawing text. The options are as follows:\n * \"center\": The text is centered.\n * \"end\": Where text aligns lines end (Left alignment refers to the local from left to right,\n *    and right alignment refers to the local from right to left)\n * \"left\": (Default) The text is left-aligned.\n * \"right\": The text is right-aligned.\n * \"start\": Where the text snap line begins (Left alignment refers to the local from left to right,\n *    and right alignment refers to the local from right to left)\n *\n * @typedef { \"center\" | \"end\" | \"left\" | \"right\" | \"start\" } CanvasTextAlign\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * Describes the alignment mode for drawing text. The options are as follows:\n * \"center\": The text is centered.\n * \"end\": Where text aligns lines end (Left alignment refers to the local from left to right,\n *    and right alignment refers to the local from right to left)\n * \"left\": (Default) The text is left-aligned.\n * \"right\": The text is right-aligned.\n * \"start\": Where the text snap line begins (Left alignment refers to the local from left to right,\n *    and right alignment refers to the local from right to left)\n *\n * @typedef { \"center\" | \"end\" | \"left\" | \"right\" | \"start\" } CanvasTextAlign\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * Describes the alignment mode for drawing text. The options are as follows:\n * \"center\": The text is centered.\n * \"end\": Where text aligns lines end (Left alignment refers to the local from left to right,\n *    and right alignment refers to the local from right to left)\n * \"left\": (Default) The text is left-aligned.\n * \"right\": The text is right-aligned.\n * \"start\": Where the text snap line begins (Left alignment refers to the local from left to right,\n *    and right alignment refers to the local from right to left)\n *\n * @typedef { \"center\" | \"end\" | \"left\" | \"right\" | \"start\" } CanvasTextAlign\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare type CanvasTextAlign = \"center\" | \"end\" | \"left\" | \"right\" | \"start\";\n/**\n * Text baseline, which supports the following configurations:\n * \"alphabetic\": (Default) The text baseline is the standard letter baseline.\n * \"bottom\": The text baseline is at the bottom of the text block. The difference between the ideographic baseline\n *    and the ideographic baseline is that the ideographic baseline does not need to consider downlink letters.\n * \"hanging\": The text baseline is a hanging baseline.\n * \"ideographic\": The text baseline is the ideographic baseline; If the character itself exceeds the alphabetic\n *    baseline, the ideographic baseline is at the bottom of the character itself.\n * \"middle\": The text baseline is in the middle of the text block.\n * \"top\": The text baseline is at the top of the text block.\n *\n * @typedef { \"alphabetic\" | \"bottom\" | \"hanging\" | \"ideographic\" | \"middle\" | \"top\" } CanvasTextBaseline\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 8\n */\n/**\n * Text baseline, which supports the following configurations:\n * \"alphabetic\": (Default) The text baseline is the standard letter baseline.\n * \"bottom\": The text baseline is at the bottom of the text block. The difference between the ideographic baseline\n *    and the ideographic baseline is that the ideographic baseline does not need to consider downlink letters.\n * \"hanging\": The text baseline is a hanging baseline.\n * \"ideographic\": The text baseline is the ideographic baseline; If the character itself exceeds the alphabetic\n *    baseline, the ideographic baseline is at the bottom of the character itself.\n * \"middle\": The text baseline is in the middle of the text block.\n * \"top\": The text baseline is at the top of the text block.\n *\n * @typedef { \"alphabetic\" | \"bottom\" | \"hanging\" | \"ideographic\" | \"middle\" | \"top\" } CanvasTextBaseline\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * Text baseline, which supports the following configurations:\n * \"alphabetic\": (Default) The text baseline is the standard letter baseline.\n * \"bottom\": The text baseline is at the bottom of the text block. The difference between the ideographic baseline\n *    and the ideographic baseline is that the ideographic baseline does not need to consider downlink letters.\n * \"hanging\": The text baseline is a hanging baseline.\n * \"ideographic\": The text baseline is the ideographic baseline; If the character itself exceeds the alphabetic\n *    baseline, the ideographic baseline is at the bottom of the character itself.\n * \"middle\": The text baseline is in the middle of the text block.\n * \"top\": The text baseline is at the top of the text block.\n *\n * @typedef { \"alphabetic\" | \"bottom\" | \"hanging\" | \"ideographic\" | \"middle\" | \"top\" } CanvasTextBaseline\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * Text baseline, which supports the following configurations:\n * \"alphabetic\": (Default) The text baseline is the standard letter baseline.\n * \"bottom\": The text baseline is at the bottom of the text block. The difference between the ideographic baseline\n *    and the ideographic baseline is that the ideographic baseline does not need to consider downlink letters.\n * \"hanging\": The text baseline is a hanging baseline.\n * \"ideographic\": The text baseline is the ideographic baseline; If the character itself exceeds the alphabetic\n *    baseline, the ideographic baseline is at the bottom of the character itself.\n * \"middle\": The text baseline is in the middle of the text block.\n * \"top\": The text baseline is at the top of the text block.\n *\n * @typedef { \"alphabetic\" | \"bottom\" | \"hanging\" | \"ideographic\" | \"middle\" | \"top\" } CanvasTextBaseline\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare type CanvasTextBaseline = \"alphabetic\" | \"bottom\" | \"hanging\" | \"ideographic\" | \"middle\" | \"top\";\n/**\n * Sets the image smoothness attribute. The options are as follows:\n * \"high\": height\n * \"low\": (default)low\n * \"medium\": medium\n *\n * @typedef { \"high\" | \"low\" | \"medium\" } ImageSmoothingQuality\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 8\n */\n/**\n * Sets the image smoothness attribute. The options are as follows:\n * \"high\": height\n * \"low\": (default)low\n * \"medium\": medium\n *\n * @typedef { \"high\" | \"low\" | \"medium\" } ImageSmoothingQuality\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * Sets the image smoothness attribute. The options are as follows:\n * \"high\": height\n * \"low\": (default)low\n * \"medium\": medium\n *\n * @typedef { \"high\" | \"low\" | \"medium\" } ImageSmoothingQuality\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * Sets the image smoothness attribute. The options are as follows:\n * \"high\": height\n * \"low\": (default)low\n * \"medium\": medium\n *\n * @typedef { \"high\" | \"low\" | \"medium\" } ImageSmoothingQuality\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare type ImageSmoothingQuality = \"high\" | \"low\" | \"medium\";\n/**\n * Import the frame node type object for Canvas.\n *\n * @typedef { import('../api/arkui/FrameNode').FrameNode } FrameNode\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 13\n */\ndeclare type FrameNode = import('../api/arkui/FrameNode').FrameNode;\n/**\n * Opaque objects that describe gradients, created by createLinearGradient() or createRadialGradient()\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 8\n */\n/**\n * Opaque objects that describe gradients, created by createLinearGradient() or createRadialGradient()\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * Opaque objects that describe gradients, created by createLinearGradient() or createRadialGradient()\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * Opaque objects that describe gradients, created by createLinearGradient() or createRadialGradient()\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare class CanvasGradient {\n    /**\n     * Add a breakpoint defined by offset and color to the gradient\n     *\n     * @param { number } offset - Value between 0 and 1, out of range throws INDEX_SIZE_ERR error\n     * @param { string } color - CSS color value <color>. If the color value cannot be resolved to a valid CSS color value <color>\n     *    a SYNTAX_ERR error is thrown.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Add a breakpoint defined by offset and color to the gradient\n     *\n     * @param { number } offset - Value between 0 and 1, out of range throws INDEX_SIZE_ERR error\n     * @param { string } color - CSS color value <color>. If the color value cannot be resolved to a valid CSS color value <color>\n     *    a SYNTAX_ERR error is thrown.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Add a breakpoint defined by offset and color to the gradient\n     *\n     * @param { number } offset - Value between 0 and 1, out of range throws INDEX_SIZE_ERR error\n     * @param { string } color - Set the gradient color.\n     *    a SYNTAX_ERR error is thrown.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Add a breakpoint defined by offset and color to the gradient\n     *\n     * @param { number } offset - Value between 0 and 1, out of range throws INDEX_SIZE_ERR error\n     * @param { string } color - Set the gradient color.\n     *    a SYNTAX_ERR error is thrown.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    addColorStop(offset: number, color: string): void;\n}\n/**\n * Path object, which provides basic methods for drawing paths.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 8\n */\n/**\n * Path object, which provides basic methods for drawing paths.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * Path object, which provides basic methods for drawing paths.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * Path object, which provides basic methods for drawing paths.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare class CanvasPath {\n    /**\n     * Draw an arc path\n     *\n     * @param { number } x - The x-axis coordinate of the center (center of the circle) of the arc.\n     * @param { number } y - The y-axis coordinate of the center (center of the circle) of the arc.\n     * @param { number } radius - Radius of the arc.\n     * @param { number } startAngle - Start point of an arc, which starts to be calculated in the x-axis direction. The unit is radian.\n     * @param { number } endAngle - The end point of the arc, in radians.\n     * @param { boolean } counterclockwise - If the value is true, the arc is drawn counterclockwise. Otherwise,\n     *    the arc is drawn clockwise. The default value is false.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Draw an arc path\n     *\n     * @param { number } x - The x-axis coordinate of the center (center of the circle) of the arc.\n     * @param { number } y - The y-axis coordinate of the center (center of the circle) of the arc.\n     * @param { number } radius - Radius of the arc.\n     * @param { number } startAngle - Start point of an arc, which starts to be calculated in the x-axis direction. The unit is radian.\n     * @param { number } endAngle - The end point of the arc, in radians.\n     * @param { boolean } counterclockwise - If the value is true, the arc is drawn counterclockwise. Otherwise,\n     *    the arc is drawn clockwise. The default value is false.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Draw an arc path\n     *\n     * @param { number } x - The x-axis coordinate of the center (center of the circle) of the arc.\n     * @param { number } y - The y-axis coordinate of the center (center of the circle) of the arc.\n     * @param { number } radius - Radius of the arc.\n     * @param { number } startAngle - Start point of an arc, which starts to be calculated in the x-axis direction. The unit is radian.\n     * @param { number } endAngle - The end point of the arc, in radians.\n     * @param { boolean } counterclockwise - If the value is true, the arc is drawn counterclockwise. Otherwise,\n     *    the arc is drawn clockwise. The default value is false.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Draw an arc path\n     *\n     * @param { number } x - The x-axis coordinate of the center (center of the circle) of the arc.\n     * @param { number } y - The y-axis coordinate of the center (center of the circle) of the arc.\n     * @param { number } radius - Radius of the arc.\n     * @param { number } startAngle - Start point of an arc, which starts to be calculated in the x-axis direction. The unit is radian.\n     * @param { number } endAngle - The end point of the arc, in radians.\n     * @param { boolean } counterclockwise - If the value is true, the arc is drawn counterclockwise. Otherwise,\n     *    the arc is drawn clockwise. The default value is false.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n    /**\n     * Draw arc paths based on control points and radius\n     *\n     * @param { number } x1 - The x-axis coordinate of the first control point.\n     * @param { number } y1 - The y-axis coordinate of the first control point.\n     * @param { number } x2 - The x-axis coordinate of the second control point.\n     * @param { number } y2 - The y-axis coordinate of the second control point.\n     * @param { number } radius - Radius of the arc.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Draw arc paths based on control points and radius\n     *\n     * @param { number } x1 - The x-axis coordinate of the first control point.\n     * @param { number } y1 - The y-axis coordinate of the first control point.\n     * @param { number } x2 - The x-axis coordinate of the second control point.\n     * @param { number } y2 - The y-axis coordinate of the second control point.\n     * @param { number } radius - Radius of the arc.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Draw arc paths based on control points and radius\n     *\n     * @param { number } x1 - The x-axis coordinate of the first control point.\n     * @param { number } y1 - The y-axis coordinate of the first control point.\n     * @param { number } x2 - The x-axis coordinate of the second control point.\n     * @param { number } y2 - The y-axis coordinate of the second control point.\n     * @param { number } radius - Radius of the arc.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Draw arc paths based on control points and radius\n     *\n     * @param { number } x1 - The x-axis coordinate of the first control point.\n     * @param { number } y1 - The y-axis coordinate of the first control point.\n     * @param { number } x2 - The x-axis coordinate of the second control point.\n     * @param { number } y2 - The y-axis coordinate of the second control point.\n     * @param { number } radius - Radius of the arc.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;\n    /**\n     * Drawing Cubic Bessel Curve Paths\n     *\n     * @param { number } cp1x - The x-axis coordinate of the first control point.\n     * @param { number } cp1y - The y-axis coordinate of the first control point.\n     * @param { number } cp2x - The x-axis coordinate of the second control point.\n     * @param { number } cp2y - The y-axis coordinate of the second control point.\n     * @param { number } x - x-axis coordinate of the end point.\n     * @param { number } y - y-axis coordinate of the end point.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Drawing Cubic Bessel Curve Paths\n     *\n     * @param { number } cp1x - The x-axis coordinate of the first control point.\n     * @param { number } cp1y - The y-axis coordinate of the first control point.\n     * @param { number } cp2x - The x-axis coordinate of the second control point.\n     * @param { number } cp2y - The y-axis coordinate of the second control point.\n     * @param { number } x - x-axis coordinate of the end point.\n     * @param { number } y - y-axis coordinate of the end point.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Drawing Cubic Bessel Curve Paths\n     *\n     * @param { number } cp1x - The x-axis coordinate of the first control point.\n     * @param { number } cp1y - The y-axis coordinate of the first control point.\n     * @param { number } cp2x - The x-axis coordinate of the second control point.\n     * @param { number } cp2y - The y-axis coordinate of the second control point.\n     * @param { number } x - x-axis coordinate of the end point.\n     * @param { number } y - y-axis coordinate of the end point.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Drawing Cubic Bessel Curve Paths\n     *\n     * @param { number } cp1x - The x-axis coordinate of the first control point.\n     * @param { number } cp1y - The y-axis coordinate of the first control point.\n     * @param { number } cp2x - The x-axis coordinate of the second control point.\n     * @param { number } cp2y - The y-axis coordinate of the second control point.\n     * @param { number } x - x-axis coordinate of the end point.\n     * @param { number } y - y-axis coordinate of the end point.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;\n    /**\n     * Returns the pen point to the start point of the current sub-path\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Returns the pen point to the start point of the current sub-path\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Returns the pen point to the start point of the current sub-path\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Returns the pen point to the start point of the current sub-path\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    closePath(): void;\n    /**\n     * Draw an Elliptic Path\n     *\n     * @param { number } x - x-axis coordinate of the center of the ellipse.\n     * @param { number } y - y-axis coordinate of the center of the ellipse.\n     * @param { number } radiusX - Radius of the major axis of the ellipse.\n     * @param { number } radiusY - Radius of the minor axis of the ellipse.\n     * @param { number } rotation - The rotation angle of the ellipse, in radians (not angular degrees).\n     * @param { number } startAngle - The angle of the starting point to be drawn, measured from the x-axis in radians\n     *    (not angular degrees).\n     * @param { number } endAngle - The angle, in radians, at which the ellipse is to be drawn (not angular degrees).\n     * @param { boolean } counterclockwise - If the value is true, the ellipse is drawn counterclockwise. Otherwise,\n     *    the ellipse is drawn clockwise. The default value is false.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Draw an Elliptic Path\n     *\n     * @param { number } x - x-axis coordinate of the center of the ellipse.\n     * @param { number } y - y-axis coordinate of the center of the ellipse.\n     * @param { number } radiusX - Radius of the major axis of the ellipse.\n     * @param { number } radiusY - Radius of the minor axis of the ellipse.\n     * @param { number } rotation - The rotation angle of the ellipse, in radians (not angular degrees).\n     * @param { number } startAngle - The angle of the starting point to be drawn, measured from the x-axis in radians\n     *    (not angular degrees).\n     * @param { number } endAngle - The angle, in radians, at which the ellipse is to be drawn (not angular degrees).\n     * @param { boolean } counterclockwise - If the value is true, the ellipse is drawn counterclockwise. Otherwise,\n     *    the ellipse is drawn clockwise. The default value is false.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Draw an Elliptic Path\n     *\n     * @param { number } x - x-axis coordinate of the center of the ellipse.\n     * @param { number } y - y-axis coordinate of the center of the ellipse.\n     * @param { number } radiusX - Radius of the major axis of the ellipse.\n     * @param { number } radiusY - Radius of the minor axis of the ellipse.\n     * @param { number } rotation - The rotation angle of the ellipse, in radians (not angular degrees).\n     * @param { number } startAngle - The angle of the starting point to be drawn, measured from the x-axis in radians\n     *    (not angular degrees).\n     * @param { number } endAngle - The angle, in radians, at which the ellipse is to be drawn (not angular degrees).\n     * @param { boolean } counterclockwise - If the value is true, the ellipse is drawn counterclockwise. Otherwise,\n     *    the ellipse is drawn clockwise. The default value is false.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Draw an Elliptic Path\n     *\n     * @param { number } x - x-axis coordinate of the center of the ellipse.\n     * @param { number } y - y-axis coordinate of the center of the ellipse.\n     * @param { number } radiusX - Radius of the major axis of the ellipse.\n     * @param { number } radiusY - Radius of the minor axis of the ellipse.\n     * @param { number } rotation - The rotation angle of the ellipse, in radians (not angular degrees).\n     * @param { number } startAngle - The angle of the starting point to be drawn, measured from the x-axis in radians\n     *    (not angular degrees).\n     * @param { number } endAngle - The angle, in radians, at which the ellipse is to be drawn (not angular degrees).\n     * @param { boolean } counterclockwise - If the value is true, the ellipse is drawn counterclockwise. Otherwise,\n     *    the ellipse is drawn clockwise. The default value is false.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n    /**\n     * Connect sub-path using straight lines\n     *\n     * @param { number } x - The x-axis coordinate of the end point of the line.\n     * @param { number } y - The y-axis coordinate of the end point of the line.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Connect sub-path using straight lines\n     *\n     * @param { number } x - The x-axis coordinate of the end point of the line.\n     * @param { number } y - The y-axis coordinate of the end point of the line.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Connect sub-path using straight lines\n     *\n     * @param { number } x - The x-axis coordinate of the end point of the line.\n     * @param { number } y - The y-axis coordinate of the end point of the line.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Connect sub-path using straight lines\n     *\n     * @param { number } x - The x-axis coordinate of the end point of the line.\n     * @param { number } y - The y-axis coordinate of the end point of the line.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    lineTo(x: number, y: number): void;\n    /**\n     * Moves the start point of a new sub-path to the (x, y) coordinate.\n     *\n     * @param { number } x - The x-axis coordinate of the point.\n     * @param { number } y - The y-axis coordinate of the point.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Moves the start point of a new sub-path to the (x, y) coordinate.\n     *\n     * @param { number } x - The x-axis coordinate of the point.\n     * @param { number } y - The y-axis coordinate of the point.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Moves the start point of a new sub-path to the (x, y) coordinate.\n     *\n     * @param { number } x - The x-axis coordinate of the point.\n     * @param { number } y - The y-axis coordinate of the point.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Moves the start point of a new sub-path to the (x, y) coordinate.\n     *\n     * @param { number } x - The x-axis coordinate of the point.\n     * @param { number } y - The y-axis coordinate of the point.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    moveTo(x: number, y: number): void;\n    /**\n     * Draw quadratic Bezier curve paths\n     *\n     * @param { number } cpx - The x-axis coordinate of the control point.\n     * @param { number } cpy - The y-axis coordinate of the control point.\n     * @param { number } x - x-axis coordinate of the end point.\n     * @param { number } y - y-axis coordinate of the end point.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Draw quadratic Bezier curve paths\n     *\n     * @param { number } cpx - The x-axis coordinate of the control point.\n     * @param { number } cpy - The y-axis coordinate of the control point.\n     * @param { number } x - x-axis coordinate of the end point.\n     * @param { number } y - y-axis coordinate of the end point.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Draw quadratic Bezier curve paths\n     *\n     * @param { number } cpx - The x-axis coordinate of the control point.\n     * @param { number } cpy - The y-axis coordinate of the control point.\n     * @param { number } x - x-axis coordinate of the end point.\n     * @param { number } y - y-axis coordinate of the end point.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Draw quadratic Bezier curve paths\n     *\n     * @param { number } cpx - The x-axis coordinate of the control point.\n     * @param { number } cpy - The y-axis coordinate of the control point.\n     * @param { number } x - x-axis coordinate of the end point.\n     * @param { number } y - y-axis coordinate of the end point.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;\n    /**\n     * Draw Rectangular Paths\n     *\n     * @param { number } x - The x-axis coordinate of the start point of the rectangle.\n     * @param { number } y - The y-axis coordinate of the start point of the rectangle.\n     * @param { number } w - Width of the rectangle.\n     * @param { number } h - Height of the rectangle.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Draw Rectangular Paths\n     *\n     * @param { number } x - The x-axis coordinate of the start point of the rectangle.\n     * @param { number } y - The y-axis coordinate of the start point of the rectangle.\n     * @param { number } w - Width of the rectangle.\n     * @param { number } h - Height of the rectangle.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Draw Rectangular Paths\n     *\n     * @param { number } x - The x-axis coordinate of the start point of the rectangle.\n     * @param { number } y - The y-axis coordinate of the start point of the rectangle.\n     * @param { number } w - Width of the rectangle.\n     * @param { number } h - Height of the rectangle.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Draw Rectangular Paths\n     *\n     * @param { number } x - The x-axis coordinate of the start point of the rectangle.\n     * @param { number } y - The y-axis coordinate of the start point of the rectangle.\n     * @param { number } w - Width of the rectangle.\n     * @param { number } h - Height of the rectangle.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    rect(x: number, y: number, w: number, h: number): void;\n    /**\n     * Draw rounded Rectangular Paths\n     *\n     * @param { number } x - The x-axis coordinate of the start point of the rectangle.\n     * @param { number } y - The y-axis coordinate of the start point of the rectangle.\n     * @param { number } w - Width of the rectangle.\n     * @param { number } h - Height of the rectangle.\n     * @param { number | Array<number> } radii - A number or list specifying the radii of the circular arc to be used for the corners of the rectangle. The default value is 0.\n     * @throws { BusinessError } 103701 - Parameter error. Possible causes:\n     * <br> 1. The param radii is a list that has zero or more than four elements.\n     * <br> 2. The param radii contains negative value.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 20\n     */\n    roundRect(x: number, y: number, w: number, h: number, radii?: number | Array<number>): void;\n}\n/**\n * 2D path object for path drawing\n *\n * @extends CanvasPath\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 8\n */\n/**\n * 2D path object for path drawing\n *\n * @extends CanvasPath\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * 2D path object for path drawing\n *\n * @extends CanvasPath\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * 2D path object for path drawing\n *\n * @extends CanvasPath\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare class Path2D extends CanvasPath {\n    /**\n     * Adds a path according to the specified path variable.\n     *\n     * @param { Path2D } path - Indicates the path object to be added.\n     * @param { Matrix2D } transform - Transformation matrix of the new trail. The default value is null.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Adds a path according to the specified path variable.\n     *\n     * @param { Path2D } path - Indicates the path object to be added.\n     * @param { Matrix2D } transform - Transformation matrix of the new trail. The default value is null.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Adds a path according to the specified path variable.\n     *\n     * @param { Path2D } path - Indicates the path object to be added.\n     * @param { Matrix2D } transform - Transformation matrix of the new trail. The default value is null.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Adds a path according to the specified path variable.\n     *\n     * @param { Path2D } path - Indicates the path object to be added.\n     * @param { Matrix2D } transform - Transformation matrix of the new trail. The default value is null.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    addPath(path: Path2D, transform?: Matrix2D): void;\n    /**\n     * Create an empty path object.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Create an empty path object.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Create an empty path object.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Create an empty path object.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    constructor();\n    /**\n     * Create an empty path object.\n     *\n     * @param { LengthMetricsUnit } [unit] - the unit mode\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    constructor(unit: LengthMetricsUnit);\n    /**\n     * Create a copy of a path object\n     *\n     * @param { Path2D } path - Path object to be copied\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Create a copy of a path object\n     *\n     * @param { Path2D } path - Path object to be copied\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Create a copy of a path object\n     *\n     * @param { Path2D } path - Path object to be copied\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Create a copy of a path object\n     *\n     * @param { Path2D } path - Path object to be copied\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    constructor(path: Path2D);\n    /**\n     * Create a copy of a path object\n     *\n     * @param { Path2D } path - Path object to be copied\n     * @param { LengthMetricsUnit } [unit] - the unit mode\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    constructor(path: Path2D, unit: LengthMetricsUnit);\n    /**\n     * Create a new path according to the description.\n     *\n     * @param { string } d - Indicates the path string that compiles with the SVG path description specifications.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Create a new path according to the description.\n     *\n     * @param { string } d - Indicates the path string that compiles with the SVG path description specifications.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Create a new path according to the description.\n     *\n     * @param { string } d - Indicates the path string that compiles with the SVG path description specifications.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Create a new path according to the description.\n     *\n     * @param { string } d - Indicates the path string that compiles with the SVG path description specifications.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    constructor(d: string);\n    /**\n     * Create a new path according to the description.\n     *\n     * @param { string } description - Indicates the path string that compiles with the SVG path description specifications.\n     * @param { LengthMetricsUnit } [unit] - the unit mode\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    constructor(description: string, unit: LengthMetricsUnit);\n}\n/**\n * Describes an opaque object of a template, which is created using the createPattern() method.\n *\n * @interface CanvasPattern\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 8\n */\n/**\n * Describes an opaque object of a template, which is created using the createPattern() method.\n *\n * @interface CanvasPattern\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * Describes an opaque object of a template, which is created using the createPattern() method.\n *\n * @interface CanvasPattern\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * Describes an opaque object of a template, which is created using the createPattern() method.\n *\n * @interface CanvasPattern\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare interface CanvasPattern {\n    /**\n     * Adds the matrix transformation effect to the current template.\n     *\n     * @param { Matrix2D } transform - transformation matrix. The default value is null.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Adds the matrix transformation effect to the current template.\n     *\n     * @param { Matrix2D } transform - transformation matrix. The default value is null.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Adds the matrix transformation effect to the current template.\n     *\n     * @param { Matrix2D } transform - transformation matrix. The default value is null.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Adds the matrix transformation effect to the current template.\n     *\n     * @param { Matrix2D } transform - transformation matrix. The default value is null.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    setTransform(transform?: Matrix2D): void;\n}\n/**\n * Size information of the text\n *\n * @interface TextMetrics\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 8\n */\n/**\n * Size information of the text\n *\n * @interface TextMetrics\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * Size information of the text\n *\n * @interface TextMetrics\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * Size information of the text\n *\n * @interface TextMetrics\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare interface TextMetrics {\n    /**\n     * Double, the distance from the horizontal line indicated by the textBaseline property to the top of\n     *    the rectangular boundary of the rendered text.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Double, the distance from the horizontal line indicated by the textBaseline property to the top of\n     *    the rectangular boundary of the rendered text.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Double, the distance from the horizontal line indicated by the textBaseline property to the top of\n     *    the rectangular boundary of the rendered text.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Double, the distance from the horizontal line indicated by the textBaseline property to the top of\n     *    the rectangular boundary of the rendered text.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    readonly actualBoundingBoxAscent: number;\n    /**\n     * Double, the distance from the horizontal line indicated by the textBaseline property to the bottom of\n     *    the rectangular boundary of the rendered text.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Double, the distance from the horizontal line indicated by the textBaseline property to the bottom of\n     *    the rectangular boundary of the rendered text.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Double, the distance from the horizontal line indicated by the textBaseline property to the bottom of\n     *    the rectangular boundary of the rendered text.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Double, the distance from the horizontal line indicated by the textBaseline property to the bottom of\n     *    the rectangular boundary of the rendered text.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    readonly actualBoundingBoxDescent: number;\n    /**\n     * Double, parallel to the baseline, distance from the alignment point determined by the textAlign property to\n     *    the left of the text rectangle boundary.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Double, parallel to the baseline, distance from the alignment point determined by the textAlign property to\n     *    the left of the text rectangle boundary.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Double, parallel to the baseline, distance from the alignment point determined by the textAlign property to\n     *    the left of the text rectangle boundary.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Double, parallel to the baseline, distance from the alignment point determined by the textAlign property to\n     *    the left of the text rectangle boundary.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    readonly actualBoundingBoxLeft: number;\n    /**\n     * Double, parallel to the baseline, distance from the alignment point determined by the textAlign property to\n     *    the right of the text rectangle boundary.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Double, parallel to the baseline, distance from the alignment point determined by the textAlign property to\n     *    the right of the text rectangle boundary.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Double, parallel to the baseline, distance from the alignment point determined by the textAlign property to\n     *    the right of the text rectangle boundary.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Double, parallel to the baseline, distance from the alignment point determined by the textAlign property to\n     *    the right of the text rectangle boundary.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    readonly actualBoundingBoxRight: number;\n    /**\n     * Double, the distance from the horizontal line indicated by the textBaseline property to the alphabetic baseline of\n     *    the wireframe.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Double, the distance from the horizontal line indicated by the textBaseline property to the alphabetic baseline of\n     *    the wireframe.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Double, the distance from the horizontal line indicated by the textBaseline property to the alphabetic baseline of\n     *    the wireframe.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Double, the distance from the horizontal line indicated by the textBaseline property to the alphabetic baseline of\n     *    the wireframe.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    readonly alphabeticBaseline: number;\n    /**\n     * Double, the distance from the horizontal line indicated by the textBaseline property to the top of the\n     *    em square in the wireframe.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Double, the distance from the horizontal line indicated by the textBaseline property to the top of the\n     *    em square in the wireframe.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Double, the distance from the horizontal line indicated by the textBaseline property to the top of the\n     *    em square in the wireframe.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Double, the distance from the horizontal line indicated by the textBaseline property to the top of the\n     *    em square in the wireframe.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    readonly emHeightAscent: number;\n    /**\n     * Double, distance from the horizontal line indicated by the textBaseline property to the bottom of the\n     *    em box in the wireframe.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Double, distance from the horizontal line indicated by the textBaseline property to the bottom of the\n     *    em box in the wireframe.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Double, distance from the horizontal line indicated by the textBaseline property to the bottom of the\n     *    em box in the wireframe.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Double, distance from the horizontal line indicated by the textBaseline property to the bottom of the\n     *    em box in the wireframe.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    readonly emHeightDescent: number;\n    /**\n     * Double, distance from the horizontal line indicated by the textBaseline property to the top of the\n     *    highest rectangle boundary of all fonts rendering text.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Double, distance from the horizontal line indicated by the textBaseline property to the top of the\n     *    highest rectangle boundary of all fonts rendering text.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Double, distance from the horizontal line indicated by the textBaseline property to the top of the\n     *    highest rectangle boundary of all fonts rendering text.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Double, distance from the horizontal line indicated by the textBaseline property to the top of the\n     *    highest rectangle boundary of all fonts rendering text.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    readonly fontBoundingBoxAscent: number;\n    /**\n     * Double, distance from the horizontal line indicated by the textBaseline property to the bottom of the\n     *   rectangular boundary of all fonts rendering text.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Double, distance from the horizontal line indicated by the textBaseline property to the bottom of the\n     *   rectangular boundary of all fonts rendering text.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Double, distance from the horizontal line indicated by the textBaseline property to the bottom of the\n     *   rectangular boundary of all fonts rendering text.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Double, distance from the horizontal line indicated by the textBaseline property to the bottom of the\n     *   rectangular boundary of all fonts rendering text.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    readonly fontBoundingBoxDescent: number;\n    /**\n     * Double, distance from the horizontal line indicated by the textBaseline property to\n     *    the hanging baseline of the wireframe.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Double, distance from the horizontal line indicated by the textBaseline property to\n     *    the hanging baseline of the wireframe.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Double, distance from the horizontal line indicated by the textBaseline property to\n     *    the hanging baseline of the wireframe.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Double, distance from the horizontal line indicated by the textBaseline property to\n     *    the hanging baseline of the wireframe.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    readonly hangingBaseline: number;\n    /**\n     * Double, distance from the horizontal line indicated by the textBaseline property to\n     *    the ideographic baseline of the wireframe.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Double, distance from the horizontal line indicated by the textBaseline property to\n     *    the ideographic baseline of the wireframe.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Double, distance from the horizontal line indicated by the textBaseline property to\n     *    the ideographic baseline of the wireframe.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Double, distance from the horizontal line indicated by the textBaseline property to\n     *    the ideographic baseline of the wireframe.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    readonly ideographicBaseline: number;\n    /**\n     * Indicates the width of a character string. The value is of the double type.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Indicates the width of a character string. The value is of the double type.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Indicates the width of a character string. The value is of the double type.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Indicates the width of a character string. The value is of the double type.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    readonly width: number;\n    /**\n     * Indicates the height of a character string. The value is of the double type.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Indicates the height of a character string. The value is of the double type.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Indicates the height of a character string. The value is of the double type.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Indicates the height of a character string. The value is of the double type.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    readonly height: number;\n}\n/**\n * Bitmap image object that can be drawn onto the current Canvas\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 8\n */\n/**\n * Bitmap image object that can be drawn onto the current Canvas\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * Bitmap image object that can be drawn onto the current Canvas\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * Bitmap image object that can be drawn onto the current Canvas\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare class ImageBitmap {\n    /**\n     * Indicates the height of the CSS pixel unit of ImageData.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Indicates the height of the CSS pixel unit of ImageData.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Indicates the height of the CSS pixel unit of ImageData.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Indicates the height of the CSS pixel unit of ImageData.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    readonly height: number;\n    /**\n     * Indicates the width of the CSS pixel unit of ImageData.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Indicates the width of the CSS pixel unit of ImageData.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Indicates the width of the CSS pixel unit of ImageData.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Indicates the width of the CSS pixel unit of ImageData.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    readonly width: number;\n    /**\n     * Releases all graphics resources associated with an ImageBitmap.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Releases all graphics resources associated with an ImageBitmap.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Releases all graphics resources associated with an ImageBitmap.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Releases all graphics resources associated with an ImageBitmap.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    close(): void;\n    /**\n     * Create an ImageBitmap object based on the transferred image path.\n     *\n     * @param { string } src - Path of the image object.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Create an ImageBitmap object based on the transferred image path.\n     *\n     * @param { string } src - Path of the image object.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Create an ImageBitmap object based on the transferred image path.\n     *\n     * @param { string } src - Path of the image object.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Create an ImageBitmap object based on the transferred image path.\n     *\n     * @param { string } src - Path of the image object.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    constructor(src: string);\n    /**\n     * Create an ImageBitmap object based on the transferred image path.\n     *\n     * @param { string } src - Path of the image object.\n     * @param { LengthMetricsUnit } [unit] - the unit mode\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    constructor(src: string, unit: LengthMetricsUnit);\n    /**\n     * Transfer a PixelMap object to construct an ImageBitmap object.\n     *\n     * @param { PixelMap } data - PixelMap object\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Transfer a PixelMap object to construct an ImageBitmap object.\n     *\n     * @param { PixelMap } data - PixelMap object\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Transfer a PixelMap object to construct an ImageBitmap object.\n     *\n     * @param { PixelMap } data - PixelMap object\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    constructor(data: PixelMap);\n    /**\n     * Transfer a PixelMap object to construct an ImageBitmap object.\n     *\n     * @param { PixelMap } data - PixelMap object\n     * @param { LengthMetricsUnit } [unit] - the unit mode\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    constructor(data: PixelMap, unit: LengthMetricsUnit);\n}\n/**\n * Image data object\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 8\n */\n/**\n * Image data object\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * Image data object\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * Image data object\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare class ImageData {\n    /**\n     * Array containing image pixel data\n     *\n     * @type { Uint8ClampedArray }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Array containing image pixel data\n     *\n     * @type { Uint8ClampedArray }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Array containing image pixel data\n     *\n     * @type { Uint8ClampedArray }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Array containing image pixel data\n     *\n     * @type { Uint8ClampedArray }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    readonly data: Uint8ClampedArray;\n    /**\n     * Width of the image.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Width of the image.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Width of the image.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Width of the image.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    readonly height: number;\n    /**\n     * Height of the image.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Height of the image.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Height of the image.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Height of the image.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    readonly width: number;\n    /**\n     * Create an ImageData object based on the input parameters.\n     *\n     * @param { number } width - Width of the image.\n     * @param { number } height - Height of the image.\n     * @param { Uint8ClampedArray } data - Data of the image. If this parameter is not specified, the default value is a black rectangular image.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Create an ImageData object based on the input parameters.\n     *\n     * @param { number } width - Width of the image.\n     * @param { number } height - Height of the image.\n     * @param { Uint8ClampedArray } data - Data of the image. If this parameter is not specified, the default value is a black rectangular image.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Create an ImageData object based on the input parameters.\n     *\n     * @param { number } width - Width of the image.\n     * @param { number } height - Height of the image.\n     * @param { Uint8ClampedArray } data - Data of the image. If this parameter is not specified, the default value is a black rectangular image.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Create an ImageData object based on the input parameters.\n     *\n     * @param { number } width - Width of the image.\n     * @param { number } height - Height of the image.\n     * @param { Uint8ClampedArray } data - Data of the image. If this parameter is not specified, the default value is a black rectangular image.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    constructor(width: number, height: number, data?: Uint8ClampedArray);\n    /**\n     * Create an ImageData object based on the input parameters.\n     *\n     * @param { number } width - Width of the image.\n     * @param { number } height - Height of the image.\n     * @param { Uint8ClampedArray } data - Data of the image. If this parameter is not specified, the default value is a black rectangular image.\n     * @param { LengthMetricsUnit } [unit] - the unit mode\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    constructor(width: number, height: number, data?: Uint8ClampedArray, unit?: LengthMetricsUnit);\n}\n/**\n * This object allows you to set properties when creating a rendering context\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 8\n */\n/**\n * This object allows you to set properties when creating a rendering context\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * This object allows you to set properties when creating a rendering context\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * This object allows you to set properties when creating a rendering context\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare class RenderingContextSettings {\n    /**\n     * Indicates whether anti-aliasing is enabled for canvas. The default value is false.\n     *\n     * @type { ?boolean }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Indicates whether anti-aliasing is enabled for canvas. The default value is false.\n     *\n     * @type { ?boolean }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Indicates whether anti-aliasing is enabled for canvas. The default value is false.\n     *\n     * @type { ?boolean }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Indicates whether anti-aliasing is enabled for canvas. The default value is false.\n     *\n     * @type { ?boolean }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    antialias?: boolean;\n    /**\n     * Create an RenderingContextSettings object based on the antialias and alpha.\n     *\n     * @param { boolean } antialias - Indicates whether anti-aliasing is enabled for canvas\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Create an RenderingContextSettings object based on the antialias and alpha.\n     *\n     * @param { boolean } antialias - Indicates whether anti-aliasing is enabled for canvas\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Create an RenderingContextSettings object based on the antialias and alpha.\n     *\n     * @param { boolean } antialias - Indicates whether anti-aliasing is enabled for canvas\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Create an RenderingContextSettings object based on the antialias and alpha.\n     *\n     * @param { boolean } antialias - Indicates whether anti-aliasing is enabled for canvas\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    constructor(antialias?: boolean);\n}\n/**\n * Canvas renderer for drawing shapes, text, images and other objects\n *\n * @extends CanvasPath\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 8\n */\n/**\n * Canvas renderer for drawing shapes, text, images and other objects\n *\n * @extends CanvasPath\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * Canvas renderer for drawing shapes, text, images and other objects\n *\n * @extends CanvasPath\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * Canvas renderer for drawing shapes, text, images and other objects\n *\n * @extends CanvasPath\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare class CanvasRenderer extends CanvasPath {\n    /**\n     * Set spacing for letter.\n     *\n     * @type { LengthMetrics | string }\n     * @default 0vp\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    letterSpacing: LengthMetrics | string;\n    /**\n     * Transparency. The value ranges from 0.0 (completely transparent) to 1.0 (completely opaque).\n     *    If the value is out of range, the assignment is invalid.\n     *\n     * @type { number }\n     * @default 1.0\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Transparency. The value ranges from 0.0 (completely transparent) to 1.0 (completely opaque).\n     *    If the value is out of range, the assignment is invalid.\n     *\n     * @type { number }\n     * @default 1.0\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Transparency. The value ranges from 0.0 (completely transparent) to 1.0 (completely opaque).\n     *    If the value is out of range, the assignment is invalid.\n     *\n     * @type { number }\n     * @default 1.0\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Transparency. The value ranges from 0.0 (completely transparent) to 1.0 (completely opaque).\n     *    If the value is out of range, the assignment is invalid.\n     *\n     * @type { number }\n     * @default 1.0\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    globalAlpha: number;\n    /**\n     * Type of composition operation applied when drawing a new shape. The following types are supported:\n     * source-over: (Default) Draws a new drawing on top of an existing canvas context.\n     * source-in: The new drawing is drawn only where the new drawing overlaps the target canvas.\n     *    Everything else is transparent.\n     * source-out: Draws a new drawing where it does not overlap with the existing canvas content.\n     * source-atop: The new drawing is drawn only where it overlaps the content of the existing canvas.\n     * destination-over: Draws a new graphic behind the existing canvas content.\n     * destination-in: Existing canvas content remains where the new drawing overlaps the existing canvas content.\n     *    Everything else is transparent.\n     * destination-out: Existing content remains where the new drawing does not overlap.\n     * destination-atop: The existing canvas retains only the part that overlaps with the new drawing,\n     *    which is drawn behind the canvas content.\n     * lighter: The color of two overlapping shapes is determined by adding the color values.\n     * copy: Only new graphics are displayed.\n     * xor: In the image, those overlaps and other places outside of the normal drawing are transparent.\n     *\n     * @type { string }\n     * @default source-over\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Type of composition operation applied when drawing a new shape. The following types are supported:\n     * source-over: (Default) Draws a new drawing on top of an existing canvas context.\n     * source-in: The new drawing is drawn only where the new drawing overlaps the target canvas.\n     *    Everything else is transparent.\n     * source-out: Draws a new drawing where it does not overlap with the existing canvas content.\n     * source-atop: The new drawing is drawn only where it overlaps the content of the existing canvas.\n     * destination-over: Draws a new graphic behind the existing canvas content.\n     * destination-in: Existing canvas content remains where the new drawing overlaps the existing canvas content.\n     *    Everything else is transparent.\n     * destination-out: Existing content remains where the new drawing does not overlap.\n     * destination-atop: The existing canvas retains only the part that overlaps with the new drawing,\n     *    which is drawn behind the canvas content.\n     * lighter: The color of two overlapping shapes is determined by adding the color values.\n     * copy: Only new graphics are displayed.\n     * xor: In the image, those overlaps and other places outside of the normal drawing are transparent.\n     *\n     * @type { string }\n     * @default source-over\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Type of composition operation applied when drawing a new shape. The following types are supported:\n     * source-over: (Default) Draws a new drawing on top of an existing canvas context.\n     * source-in: The new drawing is drawn only where the new drawing overlaps the target canvas.\n     *    Everything else is transparent.\n     * source-out: Draws a new drawing where it does not overlap with the existing canvas content.\n     * source-atop: The new drawing is drawn only where it overlaps the content of the existing canvas.\n     * destination-over: Draws a new graphic behind the existing canvas content.\n     * destination-in: Existing canvas content remains where the new drawing overlaps the existing canvas content.\n     *    Everything else is transparent.\n     * destination-out: Existing content remains where the new drawing does not overlap.\n     * destination-atop: The existing canvas retains only the part that overlaps with the new drawing,\n     *    which is drawn behind the canvas content.\n     * lighter: The color of two overlapping shapes is determined by adding the color values.\n     * copy: Only new graphics are displayed.\n     * xor: In the image, those overlaps and other places outside of the normal drawing are transparent.\n     *\n     * @type { string }\n     * @default source-over\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Type of composition operation applied when drawing a new shape. The following types are supported:\n     * source-over: (Default) Draws a new drawing on top of an existing canvas context.\n     * source-in: The new drawing is drawn only where the new drawing overlaps the target canvas.\n     *    Everything else is transparent.\n     * source-out: Draws a new drawing where it does not overlap with the existing canvas content.\n     * source-atop: The new drawing is drawn only where it overlaps the content of the existing canvas.\n     * destination-over: Draws a new graphic behind the existing canvas content.\n     * destination-in: Existing canvas content remains where the new drawing overlaps the existing canvas content.\n     *    Everything else is transparent.\n     * destination-out: Existing content remains where the new drawing does not overlap.\n     * destination-atop: The existing canvas retains only the part that overlaps with the new drawing,\n     *    which is drawn behind the canvas content.\n     * lighter: The color of two overlapping shapes is determined by adding the color values.\n     * copy: Only new graphics are displayed.\n     * xor: In the image, those overlaps and other places outside of the normal drawing are transparent.\n     *\n     * @type { string }\n     * @default source-over\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    globalCompositeOperation: string;\n    /**\n     * Draw an image on a canvas\n     *\n     * @param { ImageBitmap | PixelMap } image - Picture objects drawn to the canvas.\n     * @param { number } dx - x-axis coordinate of the upper left corner of the image on the target canvas.\n     * @param { number } dy - y-axis coordinate of the upper left corner of the image on the target canvas.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Draw an image on a canvas\n     *\n     * @param { ImageBitmap | PixelMap } image - Picture objects drawn to the canvas.\n     * @param { number } dx - x-axis coordinate of the upper left corner of the image on the target canvas.\n     * @param { number } dy - y-axis coordinate of the upper left corner of the image on the target canvas.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Draw an image on a canvas\n     *\n     * @param { ImageBitmap | PixelMap } image - Picture objects drawn to the canvas.\n     * @param { number } dx - x-axis coordinate of the upper left corner of the image on the target canvas.\n     * @param { number } dy - y-axis coordinate of the upper left corner of the image on the target canvas.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Draw an image on a canvas\n     *\n     * @param { ImageBitmap | PixelMap } image - Picture objects drawn to the canvas.\n     * @param { number } dx - x-axis coordinate of the upper left corner of the image on the target canvas.\n     * @param { number } dy - y-axis coordinate of the upper left corner of the image on the target canvas.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    drawImage(image: ImageBitmap | PixelMap, dx: number, dy: number): void;\n    /**\n     * Draw an image on a canvas\n     *\n     * @param { ImageBitmap | PixelMap } image - Picture objects drawn to the canvas.\n     * @param { number } dx - x-axis coordinate of the upper left corner of the image on the target canvas.\n     * @param { number } dy - y-axis coordinate of the upper left corner of the image on the target canvas.\n     * @param { number } dw - Specifies the drawing width of the image on the target canvas. The width of the drawn image will be scaled.\n     * @param { number } dh - Specifies the drawing height of the image on the target canvas. The height of the drawn image will be scaled.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Draw an image on a canvas\n     *\n     * @param { ImageBitmap | PixelMap } image - Picture objects drawn to the canvas.\n     * @param { number } dx - x-axis coordinate of the upper left corner of the image on the target canvas.\n     * @param { number } dy - y-axis coordinate of the upper left corner of the image on the target canvas.\n     * @param { number } dw - Specifies the drawing width of the image on the target canvas. The width of the drawn image will be scaled.\n     * @param { number } dh - Specifies the drawing height of the image on the target canvas. The height of the drawn image will be scaled.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Draw an image on a canvas\n     *\n     * @param { ImageBitmap | PixelMap } image - Picture objects drawn to the canvas.\n     * @param { number } dx - x-axis coordinate of the upper left corner of the image on the target canvas.\n     * @param { number } dy - y-axis coordinate of the upper left corner of the image on the target canvas.\n     * @param { number } dw - Specifies the drawing width of the image on the target canvas. The width of the drawn image will be scaled.\n     * @param { number } dh - Specifies the drawing height of the image on the target canvas. The height of the drawn image will be scaled.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Draw an image on a canvas\n     *\n     * @param { ImageBitmap | PixelMap } image - Picture objects drawn to the canvas.\n     * @param { number } dx - x-axis coordinate of the upper left corner of the image on the target canvas.\n     * @param { number } dy - y-axis coordinate of the upper left corner of the image on the target canvas.\n     * @param { number } dw - Specifies the drawing width of the image on the target canvas. The width of the drawn image will be scaled.\n     * @param { number } dh - Specifies the drawing height of the image on the target canvas. The height of the drawn image will be scaled.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    drawImage(image: ImageBitmap | PixelMap, dx: number, dy: number, dw: number, dh: number): void;\n    /**\n     *Draw an image on a canvas\n     *\n     * @param { ImageBitmap | PixelMap } image - Picture objects drawn to the canvas.\n     * @param { number } sx - x coordinate of the upper left corner of the rectangle (cropping) selection box of the image.\n     * @param { number } sy - y coordinate of the upper left corner of the rectangle (cropping) selection box of the image.\n     * @param { number } sw - Width of the rectangle (cropping) selection box of the image.\n     * @param { number } sh - Height of the rectangle (cropping) selection box of the image.\n     * @param { number } dx - x-axis coordinate of the upper left corner of the image on the target canvas.\n     * @param { number } dy - y-axis coordinate of the upper left corner of the image on the target canvas.\n     * @param { number } dw - Specifies the drawing width of the image on the target canvas. The width of the drawn image will be scaled.\n     * @param { number } dh - Specifies the drawing height of the image on the target canvas. The height of the drawn image will be scaled.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     *Draw an image on a canvas\n     *\n     * @param { ImageBitmap | PixelMap } image - Picture objects drawn to the canvas.\n     * @param { number } sx - x coordinate of the upper left corner of the rectangle (cropping) selection box of the image.\n     * @param { number } sy - y coordinate of the upper left corner of the rectangle (cropping) selection box of the image.\n     * @param { number } sw - Width of the rectangle (cropping) selection box of the image.\n     * @param { number } sh - Height of the rectangle (cropping) selection box of the image.\n     * @param { number } dx - x-axis coordinate of the upper left corner of the image on the target canvas.\n     * @param { number } dy - y-axis coordinate of the upper left corner of the image on the target canvas.\n     * @param { number } dw - Specifies the drawing width of the image on the target canvas. The width of the drawn image will be scaled.\n     * @param { number } dh - Specifies the drawing height of the image on the target canvas. The height of the drawn image will be scaled.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     *Draw an image on a canvas\n     *\n     * @param { ImageBitmap | PixelMap } image - Picture objects drawn to the canvas.\n     * @param { number } sx - x coordinate of the upper left corner of the rectangle (cropping) selection box of the image.\n     * @param { number } sy - y coordinate of the upper left corner of the rectangle (cropping) selection box of the image.\n     * @param { number } sw - Width of the rectangle (cropping) selection box of the image.\n     * @param { number } sh - Height of the rectangle (cropping) selection box of the image.\n     * @param { number } dx - x-axis coordinate of the upper left corner of the image on the target canvas.\n     * @param { number } dy - y-axis coordinate of the upper left corner of the image on the target canvas.\n     * @param { number } dw - Specifies the drawing width of the image on the target canvas. The width of the drawn image will be scaled.\n     * @param { number } dh - Specifies the drawing height of the image on the target canvas. The height of the drawn image will be scaled.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     *Draw an image on a canvas\n     *\n     * @param { ImageBitmap | PixelMap } image - Picture objects drawn to the canvas.\n     * @param { number } sx - x coordinate of the upper left corner of the rectangle (cropping) selection box of the image.\n     * @param { number } sy - y coordinate of the upper left corner of the rectangle (cropping) selection box of the image.\n     * @param { number } sw - Width of the rectangle (cropping) selection box of the image.\n     * @param { number } sh - Height of the rectangle (cropping) selection box of the image.\n     * @param { number } dx - x-axis coordinate of the upper left corner of the image on the target canvas.\n     * @param { number } dy - y-axis coordinate of the upper left corner of the image on the target canvas.\n     * @param { number } dw - Specifies the drawing width of the image on the target canvas. The width of the drawn image will be scaled.\n     * @param { number } dh - Specifies the drawing height of the image on the target canvas. The height of the drawn image will be scaled.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    drawImage(image: ImageBitmap | PixelMap, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;\n    /**\n     * Clear the sub-path list and start a new path.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Clear the sub-path list and start a new path.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Clear the sub-path list and start a new path.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Clear the sub-path list and start a new path.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    beginPath(): void;\n    /**\n     * Sets the currently created path as the current clipping path\n     *\n     * @param { CanvasFillRule } fillRule - Algorithm rule. For details, see {@link CanvasFillRule}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Sets the currently created path as the current clipping path\n     *\n     * @param { CanvasFillRule } fillRule - Algorithm rule. For details, see {@link CanvasFillRule}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Sets the currently created path as the current clipping path\n     *\n     * @param { CanvasFillRule } fillRule - Algorithm rule. For details, see {@link CanvasFillRule}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Sets the currently created path as the current clipping path\n     *\n     * @param { CanvasFillRule } fillRule - Algorithm rule. For details, see {@link CanvasFillRule}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    clip(fillRule?: CanvasFillRule): void;\n    /**\n     * Tailoring according to the specified path\n     *\n     * @param { Path2D } path - Path to be cut.\n     * @param { CanvasFillRule } fillRule - Algorithm rule. For details, see {@link CanvasFillRule}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Tailoring according to the specified path\n     *\n     * @param { Path2D } path - Path to be cut.\n     * @param { CanvasFillRule } fillRule - Algorithm rule. For details, see {@link CanvasFillRule}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Tailoring according to the specified path\n     *\n     * @param { Path2D } path - Path to be cut.\n     * @param { CanvasFillRule } fillRule - Algorithm rule. For details, see {@link CanvasFillRule}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Tailoring according to the specified path\n     *\n     * @param { Path2D } path - Path to be cut.\n     * @param { CanvasFillRule } fillRule - Algorithm rule. For details, see {@link CanvasFillRule}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    clip(path: Path2D, fillRule?: CanvasFillRule): void;\n    /**\n     * Fills existing paths according to the current fill style.\n     *\n     * @param { CanvasFillRule } fillRule - Algorithm rule. For details, see {@link CanvasFillRule}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Fills existing paths according to the current fill style.\n     *\n     * @param { CanvasFillRule } fillRule - Algorithm rule. For details, see {@link CanvasFillRule}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Fills existing paths according to the current fill style.\n     *\n     * @param { CanvasFillRule } fillRule - Algorithm rule. For details, see {@link CanvasFillRule}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Fills existing paths according to the current fill style.\n     *\n     * @param { CanvasFillRule } fillRule - Algorithm rule. For details, see {@link CanvasFillRule}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    fill(fillRule?: CanvasFillRule): void;\n    /**\n     * Fills the specified path according to the current fill style\n     *\n     * @param { Path2D } path - Path to be filled.\n     * @param { CanvasFillRule } fillRule - Algorithm rule. For details, see {@link CanvasFillRule}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Fills the specified path according to the current fill style\n     *\n     * @param { Path2D } path - Path to be filled.\n     * @param { CanvasFillRule } fillRule - Algorithm rule. For details, see {@link CanvasFillRule}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Fills the specified path according to the current fill style\n     *\n     * @param { Path2D } path - Path to be filled.\n     * @param { CanvasFillRule } fillRule - Algorithm rule. For details, see {@link CanvasFillRule}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Fills the specified path according to the current fill style\n     *\n     * @param { Path2D } path - Path to be filled.\n     * @param { CanvasFillRule } fillRule - Algorithm rule. For details, see {@link CanvasFillRule}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    fill(path: Path2D, fillRule?: CanvasFillRule): void;\n    /**\n     * Draws an existing path according to the current stroke style.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Draws an existing path according to the current stroke style.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Draws an existing path according to the current stroke style.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Draws an existing path according to the current stroke style.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    stroke(): void;\n    /**\n     * Draws the specified path according to the current stroke style\n     *\n     * @param { Path2D } path - Specified stroke path object\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Draws the specified path according to the current stroke style\n     *\n     * @param { Path2D } path - Specified stroke path object\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Draws the specified path according to the current stroke style\n     *\n     * @param { Path2D } path - Specified stroke path object\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Draws the specified path according to the current stroke style\n     *\n     * @param { Path2D } path - Specified stroke path object\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    stroke(path: Path2D): void;\n    /**\n     * Attributes that describe the fill color and style. The options are as follows:\n     * color: Color String\n     * CanvasGradient: Color gradient object. For details, see {@link CanvasGradient}.\n     * CanvasPattern: Template object. For details, see {@link CanvasPattern}.\n     *\n     * @type { string | CanvasGradient | CanvasPattern }\n     * @default #000000 (black)\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Attributes that describe the fill color and style. The options are as follows:\n     * color: Color String\n     * CanvasGradient: Color gradient object. For details, see {@link CanvasGradient}.\n     * CanvasPattern: Template object. For details, see {@link CanvasPattern}.\n     *\n     * @type { string | CanvasGradient | CanvasPattern }\n     * @default #000000 (black)\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Attributes that describe the fill color and style. The options are as follows:\n     *\n     * @type { string | number | CanvasGradient | CanvasPattern }\n     * string: Color String.\n     * number: Indicates the color with number.\n     * CanvasGradient: Color gradient object. For details, see {@link CanvasGradient}.\n     * CanvasPattern: Template object. For details, see {@link CanvasPattern}.\n     * @default #000000 (black)\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Attributes that describe the fill color and style. The options are as follows:\n     *\n     * @type { string | number | CanvasGradient | CanvasPattern }\n     * string: Color String.\n     * number: Indicates the color with number.\n     * CanvasGradient: Color gradient object. For details, see {@link CanvasGradient}.\n     * CanvasPattern: Template object. For details, see {@link CanvasPattern}.\n     * @default #000000 (black)\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    fillStyle: string | number | CanvasGradient | CanvasPattern;\n    /**\n     * Attributes of the stroke color and style. The options are as follows:\n     * color: Color String\n     * CanvasGradient: Color gradient object. For details, see {@link CanvasGradient}.\n     * CanvasPattern: Template object. For details, see {@link CanvasPattern}.\n     *\n     * @type { string | CanvasGradient | CanvasPattern }\n     * @default #000000 (black)\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Attributes of the stroke color and style. The options are as follows:\n     * color: Color String\n     * CanvasGradient: Color gradient object. For details, see {@link CanvasGradient}.\n     * CanvasPattern: Template object. For details, see {@link CanvasPattern}.\n     *\n     * @type { string | CanvasGradient | CanvasPattern }\n     * @default #000000 (black)\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Attributes of the stroke color and style. The options are as follows:\n     *\n     * @type { string | number | CanvasGradient | CanvasPattern }\n     * string: Color String.\n     * number: Indicates the color with number.\n     * CanvasGradient: Color gradient object. For details, see {@link CanvasGradient}.\n     * CanvasPattern: Template object. For details, see {@link CanvasPattern}.\n     * @default #000000 (black)\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Attributes of the stroke color and style. The options are as follows:\n     *\n     * @type { string | number | CanvasGradient | CanvasPattern }\n     * string: Color String.\n     * number: Indicates the color with number.\n     * CanvasGradient: Color gradient object. For details, see {@link CanvasGradient}.\n     * CanvasPattern: Template object. For details, see {@link CanvasPattern}.\n     * @default #000000 (black)\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    strokeStyle: string | number | CanvasGradient | CanvasPattern;\n    /**\n     * Creates a linear gradient object that is specified along the parameter coordinates\n     *\n     * @param { number } x0 - The x-axis coordinate of the start point.\n     * @param { number } y0 - The y-axis coordinate of the start point.\n     * @param { number } x1 - x-axis coordinate of the end point.\n     * @param { number } y1 - y-axis coordinate of the end point.\n     * @returns { CanvasGradient }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Creates a linear gradient object that is specified along the parameter coordinates\n     *\n     * @param { number } x0 - The x-axis coordinate of the start point.\n     * @param { number } y0 - The y-axis coordinate of the start point.\n     * @param { number } x1 - x-axis coordinate of the end point.\n     * @param { number } y1 - y-axis coordinate of the end point.\n     * @returns { CanvasGradient }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Creates a linear gradient object that is specified along the parameter coordinates\n     *\n     * @param { number } x0 - The x-axis coordinate of the start point.\n     * @param { number } y0 - The y-axis coordinate of the start point.\n     * @param { number } x1 - x-axis coordinate of the end point.\n     * @param { number } y1 - y-axis coordinate of the end point.\n     * @returns { CanvasGradient }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Creates a linear gradient object that is specified along the parameter coordinates\n     *\n     * @param { number } x0 - The x-axis coordinate of the start point.\n     * @param { number } y0 - The y-axis coordinate of the start point.\n     * @param { number } x1 - x-axis coordinate of the end point.\n     * @param { number } y1 - y-axis coordinate of the end point.\n     * @returns { CanvasGradient }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;\n    /**\n     * Creates a template object using the specified image\n     *\n     * @param { ImageBitmap } image - Objects as duplicate image sources\n     * @param { string | null } repetition - Specifies how to repeat images. The following four modes are supported:\n     * \"repeat\": Repeated images in both X and Y directions\n     * \"repeat-x\": Repeated images in the X-axis direction but not in the Y-axis direction\n     * \"repeat-y\": The image is repeated in the Y axis direction, and the image is not repeated in the X axis direction.\n     * \"no-repeat\": Non-repeating images in both X and Y directions\n     * @returns { CanvasPattern | null }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Creates a template object using the specified image\n     *\n     * @param { ImageBitmap } image - Objects as duplicate image sources\n     * @param { string | null } repetition - Specifies how to repeat images. The following four modes are supported:\n     * \"repeat\": Repeated images in both X and Y directions\n     * \"repeat-x\": Repeated images in the X-axis direction but not in the Y-axis direction\n     * \"repeat-y\": The image is repeated in the Y axis direction, and the image is not repeated in the X axis direction.\n     * \"no-repeat\": Non-repeating images in both X and Y directions\n     * @returns { CanvasPattern | null }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Creates a template object using the specified image\n     *\n     * @param { ImageBitmap } image - Objects as duplicate image sources\n     * @param { string | null } repetition - Specifies how to repeat images. The following four modes are supported:\n     * \"repeat\": Repeated images in both X and Y directions\n     * \"repeat-x\": Repeated images in the X-axis direction but not in the Y-axis direction\n     * \"repeat-y\": The image is repeated in the Y axis direction, and the image is not repeated in the X axis direction.\n     * \"no-repeat\": Non-repeating images in both X and Y directions\n     * \"clamp\": Replicate the edge color if the shader draws outside of its original bounds.\n     * \"mirror\": Repeat the shader's image horizontally and vertically, alternating mirror images so that adjacent images always seam.\n     * @returns { CanvasPattern | null }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Creates a template object using the specified image\n     *\n     * @param { ImageBitmap } image - Objects as duplicate image sources\n     * @param { string | null } repetition - Specifies how to repeat images. The following four modes are supported:\n     * \"repeat\": Repeated images in both X and Y directions\n     * \"repeat-x\": Repeated images in the X-axis direction but not in the Y-axis direction\n     * \"repeat-y\": The image is repeated in the Y axis direction, and the image is not repeated in the X axis direction.\n     * \"no-repeat\": Non-repeating images in both X and Y directions\n     * \"clamp\": Replicate the edge color if the shader draws outside of its original bounds.\n     * \"mirror\": Repeat the shader's image horizontally and vertically, alternating mirror images so that adjacent images always seam.\n     * @returns { CanvasPattern | null }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    createPattern(image: ImageBitmap, repetition: string | null): CanvasPattern | null;\n    /**\n     * Creates a radioactive gradient object based on parameters that determine the coordinates of two circles\n     *\n     * @param { number } x0 - The x-axis coordinate of the start circle.\n     * @param { number } y0 - The y-axis coordinate of the start circle.\n     * @param { number } r0 - Radius of the starting circle.\n     * @param { number } x1 - The x-axis coordinate of the end circle.\n     * @param { number } y1 - The y-axis coordinate of the end circle.\n     * @param { number } r1 - Radius of the end circle.\n     * @returns { CanvasGradient }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Creates a radioactive gradient object based on parameters that determine the coordinates of two circles\n     *\n     * @param { number } x0 - The x-axis coordinate of the start circle.\n     * @param { number } y0 - The y-axis coordinate of the start circle.\n     * @param { number } r0 - Radius of the starting circle.\n     * @param { number } x1 - The x-axis coordinate of the end circle.\n     * @param { number } y1 - The y-axis coordinate of the end circle.\n     * @param { number } r1 - Radius of the end circle.\n     * @returns { CanvasGradient }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Creates a radioactive gradient object based on parameters that determine the coordinates of two circles\n     *\n     * @param { number } x0 - The x-axis coordinate of the start circle.\n     * @param { number } y0 - The y-axis coordinate of the start circle.\n     * @param { number } r0 - Radius of the starting circle.\n     * @param { number } x1 - The x-axis coordinate of the end circle.\n     * @param { number } y1 - The y-axis coordinate of the end circle.\n     * @param { number } r1 - Radius of the end circle.\n     * @returns { CanvasGradient }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Creates a radioactive gradient object based on parameters that determine the coordinates of two circles\n     *\n     * @param { number } x0 - The x-axis coordinate of the start circle.\n     * @param { number } y0 - The y-axis coordinate of the start circle.\n     * @param { number } r0 - Radius of the starting circle.\n     * @param { number } x1 - The x-axis coordinate of the end circle.\n     * @param { number } y1 - The y-axis coordinate of the end circle.\n     * @param { number } r1 - Radius of the end circle.\n     * @returns { CanvasGradient }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;\n    /**\n     * Creates a gradient around a point with given coordinates.\n     *\n     * @param { number } startAngle - The angle at which to begin the gradient, in radians.\n     *                   Angle measurements start horizontally the right of the center and move around clockwise.\n     * @param { number } x - The x-axis coordinate of the center of the gradient.\n     * @param { number } y - The y-axis coordinate of the center of the gradient.\n     * @returns { CanvasGradient } A CanvasGradient object that draws a conic gradient around the given coordinates.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Creates a gradient around a point with given coordinates.\n     *\n     * @param { number } startAngle - The angle at which to begin the gradient, in radians.\n     *                   Angle measurements start horizontally the right of the center and move around clockwise.\n     * @param { number } x - The x-axis coordinate of the center of the gradient.\n     * @param { number } y - The y-axis coordinate of the center of the gradient.\n     * @returns { CanvasGradient } A CanvasGradient object that draws a conic gradient around the given coordinates.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;\n    /**\n     * Provides filter effects such as blur and grayscale. You can set the following filter effects:\n     * blur(<length>): Adds a Gaussian blur effect to the drawing\n     * brightness(<percentage>): Provides a linear multiplication for the drawing and adjusts the brightness level.\n     * contrast(<percentage>): Adjusts the contrast of the image. When the value is 0%, the image is completely black.\n     *    When the value is 100%, there is no change in the image.\n     * grayscale(<percentage>): Converts the image to a gray image. When the value is 100%, the image is completely gray.\n     *    When the value is 0%, there is no change in the image.\n     * hue-rotate(<degree>): Perform color rotation on an image. When the value is 0 degrees, there is no change in the image.\n     * invert(<percentage>): Inverted image (representing the effect of a photographic negative). When the value is 100%,\n     *    the image is completely inverted. When the value is 0%, there is no change in the image.\n     * opacity(<percentage>): Transparency of the image. At 0%, the image is completely transparent.\n     *    When the value is 100%, there is no change in the image.\n     * saturate(<percentage>): Perform saturation processing on the image. At 0%, the image is completely un-saturated.\n     *    When the value is 100%, there is no change in the image.\n     * sepia(<percentage>): The image is sepia (nostalgic style). At 100%, the image turns completely sepia.\n     *    When the value is 0%, there is no change in the image.\n     * none: Turn off filter effects\n     *\n     * @type { string }\n     * @default none\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Provides filter effects such as blur and grayscale. You can set the following filter effects:\n     * blur(<length>): Adds a Gaussian blur effect to the drawing\n     * brightness(<percentage>): Provides a linear multiplication for the drawing and adjusts the brightness level.\n     * contrast(<percentage>): Adjusts the contrast of the image. When the value is 0%, the image is completely black.\n     *    When the value is 100%, there is no change in the image.\n     * grayscale(<percentage>): Converts the image to a gray image. When the value is 100%, the image is completely gray.\n     *    When the value is 0%, there is no change in the image.\n     * hue-rotate(<degree>): Perform color rotation on an image. When the value is 0 degrees, there is no change in the image.\n     * invert(<percentage>): Inverted image (representing the effect of a photographic negative). When the value is 100%,\n     *    the image is completely inverted. When the value is 0%, there is no change in the image.\n     * opacity(<percentage>): Transparency of the image. At 0%, the image is completely transparent.\n     *    When the value is 100%, there is no change in the image.\n     * saturate(<percentage>): Perform saturation processing on the image. At 0%, the image is completely un-saturated.\n     *    When the value is 100%, there is no change in the image.\n     * sepia(<percentage>): The image is sepia (nostalgic style). At 100%, the image turns completely sepia.\n     *    When the value is 0%, there is no change in the image.\n     * none: Turn off filter effects\n     *\n     * @type { string }\n     * @default none\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Provides filter effects such as blur and grayscale. You can set the following filter effects:\n     * blur(<length>): Adds a Gaussian blur effect to the drawing\n     * brightness(<percentage>): Provides a linear multiplication for the drawing and adjusts the brightness level.\n     * contrast(<percentage>): Adjusts the contrast of the image. When the value is 0%, the image is completely black.\n     *    When the value is 100%, there is no change in the image.\n     * grayscale(<percentage>): Converts the image to a gray image. When the value is 100%, the image is completely gray.\n     *    When the value is 0%, there is no change in the image.\n     * hue-rotate(<degree>): Perform color rotation on an image. When the value is 0 degrees, there is no change in the image.\n     * invert(<percentage>): Inverted image (representing the effect of a photographic negative). When the value is 100%,\n     *    the image is completely inverted. When the value is 0%, there is no change in the image.\n     * opacity(<percentage>): Transparency of the image. At 0%, the image is completely transparent.\n     *    When the value is 100%, there is no change in the image.\n     * saturate(<percentage>): Perform saturation processing on the image. At 0%, the image is completely un-saturated.\n     *    When the value is 100%, there is no change in the image.\n     * sepia(<percentage>): The image is sepia (nostalgic style). At 100%, the image turns completely sepia.\n     *    When the value is 0%, there is no change in the image.\n     * none: Turn off filter effects\n     *\n     * @type { string }\n     * @default none\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Provides filter effects such as blur and grayscale. You can set the following filter effects:\n     * blur(<length>): Adds a Gaussian blur effect to the drawing\n     * brightness(<percentage>): Provides a linear multiplication for the drawing and adjusts the brightness level.\n     * contrast(<percentage>): Adjusts the contrast of the image. When the value is 0%, the image is completely black.\n     *    When the value is 100%, there is no change in the image.\n     * grayscale(<percentage>): Converts the image to a gray image. When the value is 100%, the image is completely gray.\n     *    When the value is 0%, there is no change in the image.\n     * hue-rotate(<degree>): Perform color rotation on an image. When the value is 0 degrees, there is no change in the image.\n     * invert(<percentage>): Inverted image (representing the effect of a photographic negative). When the value is 100%,\n     *    the image is completely inverted. When the value is 0%, there is no change in the image.\n     * opacity(<percentage>): Transparency of the image. At 0%, the image is completely transparent.\n     *    When the value is 100%, there is no change in the image.\n     * saturate(<percentage>): Perform saturation processing on the image. At 0%, the image is completely un-saturated.\n     *    When the value is 100%, there is no change in the image.\n     * sepia(<percentage>): The image is sepia (nostalgic style). At 100%, the image turns completely sepia.\n     *    When the value is 0%, there is no change in the image.\n     * none: Turn off filter effects\n     *\n     * @type { string }\n     * @default none\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    filter: string;\n    /**\n     * Creates a new, empty ImageData object of the specified size\n     *\n     * @param { number } sw - Width of the ImageData object.\n     * @param { number } sh - Height of the ImageData object.\n     * @returns { ImageData }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Creates a new, empty ImageData object of the specified size\n     *\n     * @param { number } sw - Width of the ImageData object.\n     * @param { number } sh - Height of the ImageData object.\n     * @returns { ImageData }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Creates a new, empty ImageData object of the specified size\n     *\n     * @param { number } sw - Width of the ImageData object.\n     * @param { number } sh - Height of the ImageData object.\n     * @returns { ImageData }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Creates a new, empty ImageData object of the specified size\n     *\n     * @param { number } sw - Width of the ImageData object.\n     * @param { number } sh - Height of the ImageData object.\n     * @returns { ImageData }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    createImageData(sw: number, sh: number): ImageData;\n    /**\n     * From an existing ImageData object, copy an object with the same width and height as the image.\n     *    The image content is not copied.\n     *\n     * @param { ImageData } imagedata - ImageData object to be copied.\n     * @returns { ImageData }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * From an existing ImageData object, copy an object with the same width and height as the image.\n     *    The image content is not copied.\n     *\n     * @param { ImageData } imagedata - ImageData object to be copied.\n     * @returns { ImageData }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * From an existing ImageData object, copy an object with the same width and height as the image.\n     *    The image content is not copied.\n     *\n     * @param { ImageData } imagedata - ImageData object to be copied.\n     * @returns { ImageData }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * From an existing ImageData object, copy an object with the same width and height as the image.\n     *    The image content is not copied.\n     *\n     * @param { ImageData } imagedata - ImageData object to be copied.\n     * @returns { ImageData }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    createImageData(imagedata: ImageData): ImageData;\n    /**\n     * Obtains the pixel data of a specified area on the current canvas.\n     *\n     * @param { number } sx - x coordinate of the upper left corner of the rectangular area of the image data to be extracted.\n     * @param { number } sy - y coordinate of the upper left corner of the rectangular area of the image data to be extracted.\n     * @param { number } sw - The width of the rectangular area of the image data to be extracted.\n     * @param { number } sh - The height of the rectangular area of the image data to be extracted.\n     * @returns { ImageData }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Obtains the pixel data of a specified area on the current canvas.\n     *\n     * @param { number } sx - x coordinate of the upper left corner of the rectangular area of the image data to be extracted.\n     * @param { number } sy - y coordinate of the upper left corner of the rectangular area of the image data to be extracted.\n     * @param { number } sw - The width of the rectangular area of the image data to be extracted.\n     * @param { number } sh - The height of the rectangular area of the image data to be extracted.\n     * @returns { ImageData }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Obtains the pixel data of a specified area on the current canvas.\n     *\n     * @param { number } sx - x coordinate of the upper left corner of the rectangular area of the image data to be extracted.\n     * @param { number } sy - y coordinate of the upper left corner of the rectangular area of the image data to be extracted.\n     * @param { number } sw - The width of the rectangular area of the image data to be extracted.\n     * @param { number } sh - The height of the rectangular area of the image data to be extracted.\n     * @returns { ImageData }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Obtains the pixel data of a specified area on the current canvas.\n     *\n     * @param { number } sx - x coordinate of the upper left corner of the rectangular area of the image data to be extracted.\n     * @param { number } sy - y coordinate of the upper left corner of the rectangular area of the image data to be extracted.\n     * @param { number } sw - The width of the rectangular area of the image data to be extracted.\n     * @param { number } sh - The height of the rectangular area of the image data to be extracted.\n     * @returns { ImageData }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;\n    /**\n     * Obtains the PixelMap of a specified area on the current canvas.\n     *\n     * @param { number } sx - x coordinate of the upper left corner of the rectangular area of the PixelMap to be extracted.\n     * @param { number } sy - y coordinate of the upper left corner of the rectangular area of the PixelMap to be extracted.\n     * @param { number } sw - The width of the rectangular area of the PixelMap to be extracted.\n     * @param { number } sh - The height of the rectangular area of the PixelMap to be extracted.\n     * @returns { PixelMap }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Obtains the PixelMap of a specified area on the current canvas.\n     *\n     * @param { number } sx - x coordinate of the upper left corner of the rectangular area of the PixelMap to be extracted.\n     * @param { number } sy - y coordinate of the upper left corner of the rectangular area of the PixelMap to be extracted.\n     * @param { number } sw - The width of the rectangular area of the PixelMap to be extracted.\n     * @param { number } sh - The height of the rectangular area of the PixelMap to be extracted.\n     * @returns { PixelMap }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Obtains the PixelMap of a specified area on the current canvas.\n     *\n     * @param { number } sx - x coordinate of the upper left corner of the rectangular area of the PixelMap to be extracted.\n     * @param { number } sy - y coordinate of the upper left corner of the rectangular area of the PixelMap to be extracted.\n     * @param { number } sw - The width of the rectangular area of the PixelMap to be extracted.\n     * @param { number } sh - The height of the rectangular area of the PixelMap to be extracted.\n     * @returns { PixelMap }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    getPixelMap(sx: number, sy: number, sw: number, sh: number): PixelMap;\n    /**\n     * Draws the specified ImageData object onto the canvas\n     *\n     * @param { ImageData } imagedata - ImageData object to be drawn.\n     * @param { number } dx - Position offset of the source image data in the target canvas (the offset in the x-axis direction).\n     * @param { number } dy - Position offset of the source image data in the target canvas (the offset in the y-axis direction).\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Draws the specified ImageData object onto the canvas\n     *\n     * @param { ImageData } imagedata - ImageData object to be drawn.\n     * @param { number } dx - Position offset of the source image data in the target canvas (the offset in the x-axis direction).\n     * @param { number } dy - Position offset of the source image data in the target canvas (the offset in the y-axis direction).\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Draws the specified ImageData object onto the canvas\n     *\n     * @param { ImageData } imagedata - ImageData object to be drawn.\n     * @param { number | string } dx - Position offset of the source image data in the target canvas (the offset in the x-axis direction).\n     * @param { number | string } dy - Position offset of the source image data in the target canvas (the offset in the y-axis direction).\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Draws the specified ImageData object onto the canvas\n     *\n     * @param { ImageData } imagedata - ImageData object to be drawn.\n     * @param { number | string } dx - Position offset of the source image data in the target canvas (the offset in the x-axis direction).\n     * @param { number | string } dy - Position offset of the source image data in the target canvas (the offset in the y-axis direction).\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    putImageData(imagedata: ImageData, dx: number | string, dy: number | string): void;\n    /**\n     * Draws the specified ImageData object onto the canvas\n     *\n     * @param { ImageData } imagedata - ImageData object to be drawn.\n     * @param { number } dx - Position offset of the source image data in the target canvas (the offset in the x-axis direction).\n     * @param { number } dy - Position offset of the source image data in the target canvas (the offset in the y-axis direction).\n     * @param { number } dirtyX - Position of the upper left corner of the rectangular area in the source image data.\n     *    The default is the upper left corner (x coordinate) of the entire image data.\n     * @param { number } dirtyY - Position of the upper left corner of the rectangular area in the source image data.\n     *    The default is the upper left corner (y coordinate) of the entire image data.\n     * @param { number } dirtyWidth - Width of the rectangular area in the source image data.\n     *    The default is the width of the image data.\n     * @param { number } dirtyHeight - Height of the rectangular area in the source image data.\n     *    The default is the height of the image data.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Draws the specified ImageData object onto the canvas\n     *\n     * @param { ImageData } imagedata - ImageData object to be drawn.\n     * @param { number } dx - Position offset of the source image data in the target canvas (the offset in the x-axis direction).\n     * @param { number } dy - Position offset of the source image data in the target canvas (the offset in the y-axis direction).\n     * @param { number } dirtyX - Position of the upper left corner of the rectangular area in the source image data.\n     *    The default is the upper left corner (x coordinate) of the entire image data.\n     * @param { number } dirtyY - Position of the upper left corner of the rectangular area in the source image data.\n     *    The default is the upper left corner (y coordinate) of the entire image data.\n     * @param { number } dirtyWidth - Width of the rectangular area in the source image data.\n     *    The default is the width of the image data.\n     * @param { number } dirtyHeight - Height of the rectangular area in the source image data.\n     *    The default is the height of the image data.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Draws the specified ImageData object onto the canvas\n     *\n     * @param { ImageData } imagedata - ImageData object to be drawn.\n     * @param { number | string } dx - Position offset of the source image data in the target canvas (the offset in the x-axis direction).\n     * @param { number | string } dy - Position offset of the source image data in the target canvas (the offset in the y-axis direction).\n     * @param { number | string } dirtyX - Position of the upper left corner of the rectangular area in the source image data.\n     *    The default is the upper left corner (x coordinate) of the entire image data.\n     * @param { number | string } dirtyY - Position of the upper left corner of the rectangular area in the source image data.\n     *    The default is the upper left corner (y coordinate) of the entire image data.\n     * @param { number | string } dirtyWidth - Width of the rectangular area in the source image data.\n     *    The default is the width of the image data.\n     * @param { number | string } dirtyHeight - Height of the rectangular area in the source image data.\n     *    The default is the height of the image data.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Draws the specified ImageData object onto the canvas\n     *\n     * @param { ImageData } imagedata - ImageData object to be drawn.\n     * @param { number | string } dx - Position offset of the source image data in the target canvas (the offset in the x-axis direction).\n     * @param { number | string } dy - Position offset of the source image data in the target canvas (the offset in the y-axis direction).\n     * @param { number | string } dirtyX - Position of the upper left corner of the rectangular area in the source image data.\n     *    The default is the upper left corner (x coordinate) of the entire image data.\n     * @param { number | string } dirtyY - Position of the upper left corner of the rectangular area in the source image data.\n     *    The default is the upper left corner (y coordinate) of the entire image data.\n     * @param { number | string } dirtyWidth - Width of the rectangular area in the source image data.\n     *    The default is the width of the image data.\n     * @param { number | string } dirtyHeight - Height of the rectangular area in the source image data.\n     *    The default is the height of the image data.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    putImageData(imagedata: ImageData, dx: number | string, dy: number | string, dirtyX: number | string, dirtyY: number | string, dirtyWidth: number | string, dirtyHeight: number | string): void;\n    /**\n     * Specifies whether to smooth the image. The value true indicates that the image is smooth.\n     *    The value false indicates that the image is not smooth.\n     *\n     * @type { boolean }\n     * @default true\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Specifies whether to smooth the image. The value true indicates that the image is smooth.\n     *    The value false indicates that the image is not smooth.\n     *\n     * @type { boolean }\n     * @default true\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Specifies whether to smooth the image. The value true indicates that the image is smooth.\n     *    The value false indicates that the image is not smooth.\n     *\n     * @type { boolean }\n     * @default true\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Specifies whether to smooth the image. The value true indicates that the image is smooth.\n     *    The value false indicates that the image is not smooth.\n     *\n     * @type { boolean }\n     * @default true\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    imageSmoothingEnabled: boolean;\n    /**\n     * Smoothness level of the current image. For details, see {@link ImageSmoothingQuality}.\n     *\n     * @type { ImageSmoothingQuality }\n     * @default low\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Smoothness level of the current image. For details, see {@link ImageSmoothingQuality}.\n     *\n     * @type { ImageSmoothingQuality }\n     * @default low\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Smoothness level of the current image. For details, see {@link ImageSmoothingQuality}.\n     *\n     * @type { ImageSmoothingQuality }\n     * @default low\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Smoothness level of the current image. For details, see {@link ImageSmoothingQuality}.\n     *\n     * @type { ImageSmoothingQuality }\n     * @default low\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    imageSmoothingQuality: ImageSmoothingQuality;\n    /**\n     * Line segment endpoint attribute. For details, see {@link CanvasLineCap}.\n     *\n     * @type { CanvasLineCap }\n     * @default butt\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Line segment endpoint attribute. For details, see {@link CanvasLineCap}.\n     *\n     * @type { CanvasLineCap }\n     * @default butt\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Line segment endpoint attribute. For details, see {@link CanvasLineCap}.\n     *\n     * @type { CanvasLineCap }\n     * @default butt\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Line segment endpoint attribute. For details, see {@link CanvasLineCap}.\n     *\n     * @type { CanvasLineCap }\n     * @default butt\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    lineCap: CanvasLineCap;\n    /**\n     * Dotted line offset attribute.\n     *\n     * @type { number }\n     * @default 0.0\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Dotted line offset attribute.\n     *\n     * @type { number }\n     * @default 0.0\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Dotted line offset attribute.\n     *\n     * @type { number }\n     * @default 0.0\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Dotted line offset attribute.\n     *\n     * @type { number }\n     * @default 0.0\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    lineDashOffset: number;\n    /**\n     * Line segment connection point attribute. For details, see {@link CanvasLineJoin}.\n     *\n     * @type { CanvasLineJoin }\n     * @default miter\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Line segment connection point attribute. For details, see {@link CanvasLineJoin}.\n     *\n     * @type { CanvasLineJoin }\n     * @default miter\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Line segment connection point attribute. For details, see {@link CanvasLineJoin}.\n     *\n     * @type { CanvasLineJoin }\n     * @default miter\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Line segment connection point attribute. For details, see {@link CanvasLineJoin}.\n     *\n     * @type { CanvasLineJoin }\n     * @default miter\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    lineJoin: CanvasLineJoin;\n    /**\n     * Line thickness attribute. The value cannot be 0 or a negative number.\n     *\n     * @type { number }\n     * @default 1(px)\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Line thickness attribute. The value cannot be 0 or a negative number.\n     *\n     * @type { number }\n     * @default 1(px)\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Line thickness attribute. The value cannot be 0 or a negative number.\n     *\n     * @type { number }\n     * @default 1(px)\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Line thickness attribute. The value cannot be 0 or a negative number.\n     *\n     * @type { number }\n     * @default 1(px)\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    lineWidth: number;\n    /**\n     * The value of this parameter cannot be 0 or a negative number.\n     *\n     * @type { number }\n     * @default 10(px)\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * The value of this parameter cannot be 0 or a negative number.\n     *\n     * @type { number }\n     * @default 10(px)\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * The value of this parameter cannot be 0 or a negative number.\n     *\n     * @type { number }\n     * @default 10(px)\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * The value of this parameter cannot be 0 or a negative number.\n     *\n     * @type { number }\n     * @default 10(px)\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    miterLimit: number;\n    /**\n     * Gets the current segment style.\n     *\n     * @returns { number[] }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Gets the current segment style.\n     *\n     * @returns { number[] }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Gets the current segment style.\n     *\n     * @returns { number[] }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Gets the current segment style.\n     *\n     * @returns { number[] }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    getLineDash(): number[];\n    /**\n     * Sets the dashed line mode for line drawing.\n     *\n     * @param { number[] } segments - A set of numbers that describe the length of alternating drawn lines segments and\n     *    spacing (coordinate space units).\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Sets the dashed line mode for line drawing.\n     *\n     * @param { number[] } segments - A set of numbers that describe the length of alternating drawn lines segments and\n     *    spacing (coordinate space units).\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Sets the dashed line mode for line drawing.\n     *\n     * @param { number[] } segments - A set of numbers that describe the length of alternating drawn lines segments and\n     *    spacing (coordinate space units).\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Sets the dashed line mode for line drawing.\n     *\n     * @param { number[] } segments - A set of numbers that describe the length of alternating drawn lines segments and\n     *    spacing (coordinate space units).\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    setLineDash(segments: number[]): void;\n    /**\n     * Clears the drawing content of a rectangular area.\n     *\n     * @param { number } x - The x-axis coordinate of the start point of the rectangle.\n     * @param { number } y - The y-axis coordinate of the start point of the rectangle.\n     * @param { number } w - Width of the rectangle.\n     * @param { number } h - Height of the rectangle.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Clears the drawing content of a rectangular area.\n     *\n     * @param { number } x - The x-axis coordinate of the start point of the rectangle.\n     * @param { number } y - The y-axis coordinate of the start point of the rectangle.\n     * @param { number } w - Width of the rectangle.\n     * @param { number } h - Height of the rectangle.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Clears the drawing content of a rectangular area.\n     *\n     * @param { number } x - The x-axis coordinate of the start point of the rectangle.\n     * @param { number } y - The y-axis coordinate of the start point of the rectangle.\n     * @param { number } w - Width of the rectangle.\n     * @param { number } h - Height of the rectangle.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Clears the drawing content of a rectangular area.\n     *\n     * @param { number } x - The x-axis coordinate of the start point of the rectangle.\n     * @param { number } y - The y-axis coordinate of the start point of the rectangle.\n     * @param { number } w - Width of the rectangle.\n     * @param { number } h - Height of the rectangle.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    clearRect(x: number, y: number, w: number, h: number): void;\n    /**\n     * Fills a specified rectangular area\n     *\n     * @param { number } x - The x-axis coordinate of the start point of the rectangle.\n     * @param { number } y - The y-axis coordinate of the start point of the rectangle.\n     * @param { number } w - Width of the rectangle.\n     * @param { number } h - Height of the rectangle.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Fills a specified rectangular area\n     *\n     * @param { number } x - The x-axis coordinate of the start point of the rectangle.\n     * @param { number } y - The y-axis coordinate of the start point of the rectangle.\n     * @param { number } w - Width of the rectangle.\n     * @param { number } h - Height of the rectangle.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Fills a specified rectangular area\n     *\n     * @param { number } x - The x-axis coordinate of the start point of the rectangle.\n     * @param { number } y - The y-axis coordinate of the start point of the rectangle.\n     * @param { number } w - Width of the rectangle.\n     * @param { number } h - Height of the rectangle.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Fills a specified rectangular area\n     *\n     * @param { number } x - The x-axis coordinate of the start point of the rectangle.\n     * @param { number } y - The y-axis coordinate of the start point of the rectangle.\n     * @param { number } w - Width of the rectangle.\n     * @param { number } h - Height of the rectangle.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    fillRect(x: number, y: number, w: number, h: number): void;\n    /**\n     * Stroke Specify Rectangular Area\n     *\n     * @param { number } x - The x-axis coordinate of the start point of the rectangle.\n     * @param { number } y - The y-axis coordinate of the start point of the rectangle.\n     * @param { number } w - Width of the rectangle.\n     * @param { number } h - Height of the rectangle.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Stroke Specify Rectangular Area\n     *\n     * @param { number } x - The x-axis coordinate of the start point of the rectangle.\n     * @param { number } y - The y-axis coordinate of the start point of the rectangle.\n     * @param { number } w - Width of the rectangle.\n     * @param { number } h - Height of the rectangle.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Stroke Specify Rectangular Area\n     *\n     * @param { number } x - The x-axis coordinate of the start point of the rectangle.\n     * @param { number } y - The y-axis coordinate of the start point of the rectangle.\n     * @param { number } w - Width of the rectangle.\n     * @param { number } h - Height of the rectangle.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Stroke Specify Rectangular Area\n     *\n     * @param { number } x - The x-axis coordinate of the start point of the rectangle.\n     * @param { number } y - The y-axis coordinate of the start point of the rectangle.\n     * @param { number } w - Width of the rectangle.\n     * @param { number } h - Height of the rectangle.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    strokeRect(x: number, y: number, w: number, h: number): void;\n    /**\n     * Shadow blur radius. The value cannot be a negative number.\n     *\n     * @type { number }\n     * @default 0\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Shadow blur radius. The value cannot be a negative number.\n     *\n     * @type { number }\n     * @default 0\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Shadow blur radius. The value cannot be a negative number.\n     *\n     * @type { number }\n     * @default 0\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Shadow blur radius. The value cannot be a negative number.\n     *\n     * @type { number }\n     * @default 0\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    shadowBlur: number;\n    /**\n     * Shadow color.\n     *\n     * @type { string }\n     * @default transparent black\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Shadow color.\n     *\n     * @type { string }\n     * @default transparent black\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Shadow color.\n     *\n     * @type { string }\n     * @default transparent black\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Shadow color.\n     *\n     * @type { string }\n     * @default transparent black\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    shadowColor: string;\n    /**\n     * Horizontal offset distance of the shadow.\n     *\n     * @type { number }\n     * @default 0\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Horizontal offset distance of the shadow.\n     *\n     * @type { number }\n     * @default 0\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Horizontal offset distance of the shadow.\n     *\n     * @type { number }\n     * @default 0\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Horizontal offset distance of the shadow.\n     *\n     * @type { number }\n     * @default 0\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    shadowOffsetX: number;\n    /**\n     * Vertical offset distance of the shadow.\n     *\n     * @type { number }\n     * @default 0\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Vertical offset distance of the shadow.\n     *\n     * @type { number }\n     * @default 0\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Vertical offset distance of the shadow.\n     *\n     * @type { number }\n     * @default 0\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Vertical offset distance of the shadow.\n     *\n     * @type { number }\n     * @default 0\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    shadowOffsetY: number;\n    /**\n     * Top of the stack pop-up state in the drawing state stack\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Top of the stack pop-up state in the drawing state stack\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Top of the stack pop-up state in the drawing state stack\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Top of the stack pop-up state in the drawing state stack\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    restore(): void;\n    /**\n     * Saves the current drawing state to the drawing state stack\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Saves the current drawing state to the drawing state stack\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Saves the current drawing state to the drawing state stack\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Saves the current drawing state to the drawing state stack\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    save(): void;\n    /**\n     * Fills the specified text at the specified location\n     *\n     * @param { string } text - Text string to be drawn.\n     * @param { number } x - The x-axis coordinate of the start point of the text.\n     * @param { number } y - The y-axis coordinate of the start point of the text.\n     * @param { number } maxWidth - Maximum width of the drawing.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Fills the specified text at the specified location\n     *\n     * @param { string } text - Text string to be drawn.\n     * @param { number } x - The x-axis coordinate of the start point of the text.\n     * @param { number } y - The y-axis coordinate of the start point of the text.\n     * @param { number } maxWidth - Maximum width of the drawing.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Fills the specified text at the specified location\n     *\n     * @param { string } text - Text string to be drawn.\n     * @param { number } x - The x-axis coordinate of the start point of the text.\n     * @param { number } y - The y-axis coordinate of the start point of the text.\n     * @param { number } maxWidth - Maximum width of the drawing.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Fills the specified text at the specified location\n     *\n     * @param { string } text - Text string to be drawn.\n     * @param { number } x - The x-axis coordinate of the start point of the text.\n     * @param { number } y - The y-axis coordinate of the start point of the text.\n     * @param { number } maxWidth - Maximum width of the drawing.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    fillText(text: string, x: number, y: number, maxWidth?: number): void;\n    /**\n     * Measure the size of a specified text. For details about the return value, see {@link TextMetrics}.\n     *\n     * @param { string } text - Text string to be measured.\n     * @returns { TextMetrics }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Measure the size of a specified text. For details about the return value, see {@link TextMetrics}.\n     *\n     * @param { string } text - Text string to be measured.\n     * @returns { TextMetrics }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Measure the size of a specified text. For details about the return value, see {@link TextMetrics}.\n     *\n     * @param { string } text - Text string to be measured.\n     * @returns { TextMetrics }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Measure the size of a specified text. For details about the return value, see {@link TextMetrics}.\n     *\n     * @param { string } text - Text string to be measured.\n     * @returns { TextMetrics }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    measureText(text: string): TextMetrics;\n    /**\n     * Stroke specified text at specified position\n     *\n     * @param { string } text - Text string to be stroked.\n     * @param { number } x - The x-axis coordinate of the start point of the text.\n     * @param { number } y - The y-axis-axis coordinate of the start point of the text.\n     * @param { number } maxWidth - Maximum width of the stroke.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Stroke specified text at specified position\n     *\n     * @param { string } text - Text string to be stroked.\n     * @param { number } x - The x-axis coordinate of the start point of the text.\n     * @param { number } y - The y-axis-axis coordinate of the start point of the text.\n     * @param { number } maxWidth - Maximum width of the stroke.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Stroke specified text at specified position\n     *\n     * @param { string } text - Text string to be stroked.\n     * @param { number } x - The x-axis coordinate of the start point of the text.\n     * @param { number } y - The y-axis-axis coordinate of the start point of the text.\n     * @param { number } maxWidth - Maximum width of the stroke.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Stroke specified text at specified position\n     *\n     * @param { string } text - Text string to be stroked.\n     * @param { number } x - The x-axis coordinate of the start point of the text.\n     * @param { number } y - The y-axis-axis coordinate of the start point of the text.\n     * @param { number } maxWidth - Maximum width of the stroke.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    strokeText(text: string, x: number, y: number, maxWidth?: number): void;\n    /**\n     * Text drawing direction. For details, see {@link CanvasDirection}.\n     *\n     * @type { CanvasDirection }\n     * @default inherit\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Text drawing direction. For details, see {@link CanvasDirection}.\n     *\n     * @type { CanvasDirection }\n     * @default inherit\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Text drawing direction. For details, see {@link CanvasDirection}.\n     *\n     * @type { CanvasDirection }\n     * @default inherit\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Text drawing direction. For details, see {@link CanvasDirection}.\n     *\n     * @type { CanvasDirection }\n     * @default inherit\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    direction: CanvasDirection;\n    /**\n     * Font style.\n     *\n     * @type { string }\n     * @default normal normal 14px sans-serif\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Font style.\n     *\n     * @type { string }\n     * @default normal normal 14px sans-serif\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Font style.\n     *\n     * @type { string }\n     * @default normal normal 14px sans-serif\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Font style.\n     *\n     * @type { string }\n     * @default normal normal 14px sans-serif\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    font: string;\n    /**\n     * Text alignment mode. For details, see {@link CanvasTextAlign}.\n     *\n     * @type { CanvasTextAlign }\n     * @default left\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Text alignment mode. For details, see {@link CanvasTextAlign}.\n     *\n     * @type { CanvasTextAlign }\n     * @default left\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Text alignment mode. For details, see {@link CanvasTextAlign}.\n     *\n     * @type { CanvasTextAlign }\n     * @default left\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Text alignment mode. For details, see {@link CanvasTextAlign}.\n     *\n     * @type { CanvasTextAlign }\n     * @default left\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    textAlign: CanvasTextAlign;\n    /**\n     * Text baseline. For details, see {@link CanvasTextBaseline}.\n     *\n     * @type { CanvasTextBaseline }\n     * @default alphabetic\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Text baseline. For details, see {@link CanvasTextBaseline}.\n     *\n     * @type { CanvasTextBaseline }\n     * @default alphabetic\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Text baseline. For details, see {@link CanvasTextBaseline}.\n     *\n     * @type { CanvasTextBaseline }\n     * @default alphabetic\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Text baseline. For details, see {@link CanvasTextBaseline}.\n     *\n     * @type { CanvasTextBaseline }\n     * @default alphabetic\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    textBaseline: CanvasTextBaseline;\n    /**\n     * Obtains the currently applied transformation matrix.\n     *\n     * @returns { Matrix2D }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Obtains the currently applied transformation matrix.\n     *\n     * @returns { Matrix2D }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Obtains the currently applied transformation matrix.\n     *\n     * @returns { Matrix2D }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Obtains the currently applied transformation matrix.\n     *\n     * @returns { Matrix2D }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    getTransform(): Matrix2D;\n    /**\n     * Resets the current transformation matrix using the identity matrix\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Resets the current transformation matrix using the identity matrix\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Resets the current transformation matrix using the identity matrix\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Resets the current transformation matrix using the identity matrix\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    resetTransform(): void;\n    /**\n     * Adds the effect of a rotation\n     *\n     * @param { number } angle - The radian of clockwise rotation, which can be converted to an angle value using the formula:\n     *    degree * Math.PI / 180\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Adds the effect of a rotation\n     *\n     * @param { number } angle - The radian of clockwise rotation, which can be converted to an angle value using the formula:\n     *    degree * Math.PI / 180\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Adds the effect of a rotation\n     *\n     * @param { number } angle - The radian of clockwise rotation, which can be converted to an angle value using the formula:\n     *    degree * Math.PI / 180\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Adds the effect of a rotation\n     *\n     * @param { number } angle - The radian of clockwise rotation, which can be converted to an angle value using the formula:\n     *    degree * Math.PI / 180\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    rotate(angle: number): void;\n    /**\n     * Increases the scaling effect of the X and Y axes.\n     *\n     * @param { number } x - Horizontal scaling factor\n     * @param { number } y - Vertical scaling factor\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Increases the scaling effect of the X and Y axes.\n     *\n     * @param { number } x - Horizontal scaling factor\n     * @param { number } y - Vertical scaling factor\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Increases the scaling effect of the X and Y axes.\n     *\n     * @param { number } x - Horizontal scaling factor\n     * @param { number } y - Vertical scaling factor\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Increases the scaling effect of the X and Y axes.\n     *\n     * @param { number } x - Horizontal scaling factor\n     * @param { number } y - Vertical scaling factor\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    scale(x: number, y: number): void;\n    /**\n     * Adds 2D transformation effects, including rotation, translation, and scaling.\n     *    The current transformation matrix will not be overwritten. Multiple transformations will be superimposed.\n     *\n     * @param { number } a - Horizontal Zoom\n     * @param { number } b - Vertical Tilt\n     * @param { number } c - Horizontal Tilt\n     * @param { number } d - Vertical Zoom\n     * @param { number } e - Horizontal movement\n     * @param { number } f - Vertical movement\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Adds 2D transformation effects, including rotation, translation, and scaling.\n     *    The current transformation matrix will not be overwritten. Multiple transformations will be superimposed.\n     *\n     * @param { number } a - Horizontal Zoom\n     * @param { number } b - Vertical Tilt\n     * @param { number } c - Horizontal Tilt\n     * @param { number } d - Vertical Zoom\n     * @param { number } e - Horizontal movement\n     * @param { number } f - Vertical movement\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Adds 2D transformation effects, including rotation, translation, and scaling.\n     *    The current transformation matrix will not be overwritten. Multiple transformations will be superimposed.\n     *\n     * @param { number } a - Horizontal Zoom\n     * @param { number } b - Vertical Tilt\n     * @param { number } c - Horizontal Tilt\n     * @param { number } d - Vertical Zoom\n     * @param { number } e - Horizontal movement\n     * @param { number } f - Vertical movement\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Adds 2D transformation effects, including rotation, translation, and scaling.\n     *    The current transformation matrix will not be overwritten. Multiple transformations will be superimposed.\n     *\n     * @param { number } a - Horizontal Zoom\n     * @param { number } b - Vertical Tilt\n     * @param { number } c - Horizontal Tilt\n     * @param { number } d - Vertical Zoom\n     * @param { number } e - Horizontal movement\n     * @param { number } f - Vertical movement\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n    /**\n     * The 2D transformation effect is added. The current transformation matrix is not overwritten and\n     *    the transformations are superimposed for multiple times.\n     *\n     * @param { Matrix2D } transform - 2D transformation matrix. For details, see {@link Matrix2D}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * The 2D transformation effect is added. The current transformation matrix is not overwritten and\n     *    the transformations are superimposed for multiple times.\n     *\n     * @param { Matrix2D } transform - 2D transformation matrix. For details, see {@link Matrix2D}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * The 2D transformation effect is added. The current transformation matrix is not overwritten and\n     *    the transformations are superimposed for multiple times.\n     *\n     * @param { Matrix2D } transform - 2D transformation matrix. For details, see {@link Matrix2D}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * The 2D transformation effect is added. The current transformation matrix is not overwritten and\n     *    the transformations are superimposed for multiple times.\n     *\n     * @param { Matrix2D } transform - 2D transformation matrix. For details, see {@link Matrix2D}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    setTransform(transform?: Matrix2D): void;\n    /**\n     * Adds the 2D transformation effect, including rotation, translation, and scaling,\n     *    and overwrites the current transformation matrix.\n     *\n     * @param { number } a - Horizontal Zoom\n     * @param { number } b - Vertical Tilt\n     * @param { number } c - Horizontal Tilt\n     * @param { number } d - Vertical Zoom\n     * @param { number } e - Horizontal movement\n     * @param { number } f - Vertical movement\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Adds the 2D transformation effect, including rotation, translation, and scaling,\n     *    and overwrites the current transformation matrix.\n     *\n     * @param { number } a - Horizontal Zoom\n     * @param { number } b - Vertical Tilt\n     * @param { number } c - Horizontal Tilt\n     * @param { number } d - Vertical Zoom\n     * @param { number } e - Horizontal movement\n     * @param { number } f - Vertical movement\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Adds the 2D transformation effect, including rotation, translation, and scaling,\n     *    and overwrites the current transformation matrix.\n     *\n     * @param { number } a - Horizontal Zoom\n     * @param { number } b - Vertical Tilt\n     * @param { number } c - Horizontal Tilt\n     * @param { number } d - Vertical Zoom\n     * @param { number } e - Horizontal movement\n     * @param { number } f - Vertical movement\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Adds the 2D transformation effect, including rotation, translation, and scaling,\n     *    and overwrites the current transformation matrix.\n     *\n     * @param { number } a - Horizontal Zoom\n     * @param { number } b - Vertical Tilt\n     * @param { number } c - Horizontal Tilt\n     * @param { number } d - Vertical Zoom\n     * @param { number } e - Horizontal movement\n     * @param { number } f - Vertical movement\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    transform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n    /**\n     * Increases the translation effect of the X and Y axes\n     *\n     * @param { number } x - Horizontal movement distance\n     * @param { number } y - Vertical travel distance\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Increases the translation effect of the X and Y axes\n     *\n     * @param { number } x - Horizontal movement distance\n     * @param { number } y - Vertical travel distance\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Increases the translation effect of the X and Y axes\n     *\n     * @param { number } x - Horizontal movement distance\n     * @param { number } y - Vertical travel distance\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Increases the translation effect of the X and Y axes\n     *\n     * @param { number } x - Horizontal movement distance\n     * @param { number } y - Vertical travel distance\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    translate(x: number, y: number): void;\n    /**\n     * Set a PixelMap to the current context. The drawing content is synchronized to the PixelMap.\n     *\n     * @param { PixelMap } value - PixelMap object\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Set a PixelMap to the current context. The drawing content is synchronized to the PixelMap.\n     *\n     * @param { PixelMap } value - PixelMap object\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Set a PixelMap to the current context. The drawing content is synchronized to the PixelMap.\n     *\n     * @param { PixelMap } value - PixelMap object\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    setPixelMap(value?: PixelMap): void;\n    /**\n     * transfer ImageBitmap to content.\n     *\n     * @param { ImageBitmap } bitmap\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * transfer ImageBitmap to content.\n     *\n     * @param { ImageBitmap } bitmap\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * transfer ImageBitmap to content.\n     *\n     * @param { ImageBitmap } bitmap\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * transfer ImageBitmap to content.\n     *\n     * @param { ImageBitmap } bitmap\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    transferFromImageBitmap(bitmap: ImageBitmap): void;\n    /**\n     * Allocate a layer for subsequent drawing.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    saveLayer(): void;\n    /**\n     * Remove changes to transform and clip since saveLayer was last called and draw the layer on canvas.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    restoreLayer(): void;\n    /**\n       * Clear the backing buffer, drawing state stack, any defined paths, and styles.\n       *\n       * @syscap SystemCapability.ArkUI.ArkUI.Full\n       * @crossplatform\n       * @atomicservice\n       * @since 12\n       */\n    reset(): void;\n}\n/**\n * Draw context object for the Canvas component.\n *\n * @extends CanvasRenderer\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 8\n */\n/**\n * Draw context object for the Canvas component.\n *\n * @extends CanvasRenderer\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * Draw context object for the Canvas component.\n *\n * @extends CanvasRenderer\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * Draw context object for the Canvas component.\n *\n * @extends CanvasRenderer\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare class CanvasRenderingContext2D extends CanvasRenderer {\n    /**\n     * The default value is 0, which is bound to the height of the specified canvas. The value is read-only.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * The default value is 0, which is bound to the height of the specified canvas. The value is read-only.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * The default value is 0, which is bound to the height of the specified canvas. The value is read-only.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * The default value is 0, which is bound to the height of the specified canvas. The value is read-only.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    readonly height: number;\n    /**\n     * The default value is 0, which is bound to the width of the specified canvas. The value is read-only.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * The default value is 0, which is bound to the width of the specified canvas. The value is read-only.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * The default value is 0, which is bound to the width of the specified canvas. The value is read-only.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * The default value is 0, which is bound to the width of the specified canvas. The value is read-only.\n     *\n     * @type { number }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    readonly width: number;\n    /**\n     * Frame node of the canvas. The default value is null.\n     *\n     * @type { FrameNode }\n     * @readonly\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 13\n     */\n    readonly canvas: FrameNode;\n    /**\n     * Generate a character string in the data url format.\n     *\n     * @param { string } type - Image format. The default value is image/png.\n     * @param { any } quality - If the image format is image/jpeg or image/webp, you can select the image quality from 0 to 1.\n     *    If the value is out of the range, the default value 0.92 is used.\n     * @returns { string }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Generate a character string in the data url format.\n     *\n     * @param { string } type - Image format. The default value is image/png.\n     * @param { any } quality - If the image format is image/jpeg or image/webp, you can select the image quality from 0 to 1.\n     *    If the value is out of the range, the default value 0.92 is used.\n     * @returns { string }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Generate a character string in the data url format.\n     *\n     * @param { string } type - Image format. The default value is image/png.\n     * @param { any } quality - If the image format is image/jpeg or image/webp, you can select the image quality from 0 to 1.\n     *    If the value is out of the range, the default value 0.92 is used.\n     * @returns { string }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Generate a character string in the data url format.\n     *\n     * @param { string } type - Image format. The default value is image/png.\n     * @param { any } quality - If the image format is image/jpeg or image/webp, you can select the image quality from 0 to 1.\n     *    If the value is out of the range, the default value 0.92 is used.\n     * @returns { string }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    toDataURL(type?: string, quality?: any): string;\n    /**\n     * Start image analyzer.\n     *\n     * @param { ImageAnalyzerConfig } config - Image analyzer config.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 110001 - Image analysis feature is not supported.\n     * @throws { BusinessError } 110002 - Image analysis is currently being executed.\n     * @throws { BusinessError } 110003 - Image analysis is stopped.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @atomicservice\n     * @since 12\n     */\n    startImageAnalyzer(config: ImageAnalyzerConfig): Promise<void>;\n    /**\n     * Stop image analyzer.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @atomicservice\n     * @since 12\n     */\n    stopImageAnalyzer(): void;\n    /**\n     * Constructor of the canvas drawing context object, which is used to create a drawing context object.\n     *\n     * @param { RenderingContextSettings } settings - Drawing attribute. For details, see {@link RenderingContextSettings}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Constructor of the canvas drawing context object, which is used to create a drawing context object.\n     *\n     * @param { RenderingContextSettings } settings - Drawing attribute. For details, see {@link RenderingContextSettings}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Constructor of the canvas drawing context object, which is used to create a drawing context object.\n     *\n     * @param { RenderingContextSettings } settings - Drawing attribute. For details, see {@link RenderingContextSettings}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Constructor of the canvas drawing context object, which is used to create a drawing context object.\n     *\n     * @param { RenderingContextSettings } settings - Drawing attribute. For details, see {@link RenderingContextSettings}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    constructor(settings?: RenderingContextSettings);\n    /**\n     * Constructor of the canvas drawing context object, which is used to create a drawing context object.\n     *\n     * @param { RenderingContextSettings } settings - Drawing attribute. For details, see {@link RenderingContextSettings}.\n     * @param { LengthMetricsUnit } [unit] - the unit mode\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    constructor(settings?: RenderingContextSettings, unit?: LengthMetricsUnit);\n    /**\n     * Register the listener that watches if the canvasrenderingcontext2d attached to the Canvas frameNode.\n     *\n     * @param { 'onAttach' } type Indicates the type of event.\n     * @param { Callback<void> } callback Indicates the listener.\n     * @throws { BusinessError } 401 - Input parameter error. Possible causes:\n     *     1. Mandatory parameters are left unspecified;\n     *     2. Incorrect parameter types;\n     *     3. Parameter verification failed.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 13\n     */\n    on(type: 'onAttach', callback: Callback<void>): void;\n    /**\n     * Unregister the listener that watches if the canvasrenderingcontext2d attached to the Canvas frameNode.\n     *\n     * @param { 'onAttach' } type Indicates the type of event.\n     * @param { Callback<void> } callback Indicates the listener.\n     * @throws { BusinessError } 401 - Input parameter error. Possible causes:\n     *     1. Mandatory parameters are left unspecified;\n     *     2. Incorrect parameter types;\n     *     3. Parameter verification failed.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 13\n     */\n    off(type: 'onAttach', callback?: Callback<void>): void;\n    /**\n     * Register the listener that watches if the canvasrenderingcontext2d detached from the Canvas frameNode.\n     *\n     * @param { 'onDetach' } type Indicates the type of event.\n     * @param { Callback<void> } callback Indicates the listener.\n     * @throws { BusinessError } 401 - Input parameter error. Possible causes:\n     *     1. Mandatory parameters are left unspecified;\n     *     2. Incorrect parameter types;\n     *     3. Parameter verification failed.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 13\n     */\n    on(type: 'onDetach', callback: Callback<void>): void;\n    /**\n     * Unregister the listener that watches if the canvasrenderingcontext2d detached from the Canvas frameNode.\n     *\n     * @param { 'onDetach' } type Indicates the type of event.\n     * @param { Callback<void> } callback Indicates the listener.\n     * @throws { BusinessError } 401 - Input parameter error. Possible causes:\n     *     1. Mandatory parameters are left unspecified;\n     *     2. Incorrect parameter types;\n     *     3. Parameter verification failed.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 13\n     */\n    off(type: 'onDetach', callback?: Callback<void>): void;\n}\n/**\n * Draw context object for the OffscreenCanvas component.\n *\n * @extends CanvasRenderer\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 8\n */\n/**\n * Draw context object for the OffscreenCanvas component.\n *\n * @extends CanvasRenderer\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * Draw context object for the OffscreenCanvas component.\n *\n * @extends CanvasRenderer\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * Draw context object for the OffscreenCanvas component.\n *\n * @extends CanvasRenderer\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare class OffscreenCanvasRenderingContext2D extends CanvasRenderer {\n    /**\n     * Generate a character string in the data url format.\n     *\n     * @param { string } type - Image format. The default value is image/png.\n     * @param { any } quality - If the image format is image/jpeg or image/webp, you can select the image quality from 0 to 1.\n     *    If the value is out of the range, the default value 0.92 is used.\n     * @returns { string }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Generate a character string in the data url format.\n     *\n     * @param { string } type - Image format. The default value is image/png.\n     * @param { any } quality - If the image format is image/jpeg or image/webp, you can select the image quality from 0 to 1.\n     *    If the value is out of the range, the default value 0.92 is used.\n     * @returns { string }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Generate a character string in the data url format.\n     *\n     * @param { string } type - Image format. The default value is image/png.\n     * @param { any } quality - If the image format is image/jpeg or image/webp, you can select the image quality from 0 to 1.\n     *    If the value is out of the range, the default value 0.92 is used.\n     * @returns { string }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Generate a character string in the data url format.\n     *\n     * @param { string } type - Image format. The default value is image/png.\n     * @param { any } quality - If the image format is image/jpeg or image/webp, you can select the image quality from 0 to 1.\n     *    If the value is out of the range, the default value 0.92 is used.\n     * @returns { string }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    toDataURL(type?: string, quality?: any): string;\n    /**\n     * transfer the content to ImageBitmap\n     *\n     * @returns { ImageBitmap }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * transfer the content to ImageBitmap\n     *\n     * @returns { ImageBitmap }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * transfer the content to ImageBitmap\n     *\n     * @returns { ImageBitmap }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * transfer the content to ImageBitmap\n     *\n     * @returns { ImageBitmap }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    transferToImageBitmap(): ImageBitmap;\n    /**\n     * Constructor of the canvas drawing context object, which is used to create a drawing context object.\n     *\n     * @param { number } width - the width of the OffscreenCanvas\n     * @param { number } height - the height of the OffscreenCanvas\n     * @param { RenderingContextSettings } settings - Drawing attribute. For details, see {@link RenderingContextSettings}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Constructor of the canvas drawing context object, which is used to create a drawing context object.\n     *\n     * @param { number } width - the width of the OffscreenCanvas\n     * @param { number } height - the height of the OffscreenCanvas\n     * @param { RenderingContextSettings } settings - Drawing attribute. For details, see {@link RenderingContextSettings}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Constructor of the canvas drawing context object, which is used to create a drawing context object.\n     *\n     * @param { number } width - the width of the OffscreenCanvas\n     * @param { number } height - the height of the OffscreenCanvas\n     * @param { RenderingContextSettings } settings - Drawing attribute. For details, see {@link RenderingContextSettings}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Constructor of the canvas drawing context object, which is used to create a drawing context object.\n     *\n     * @param { number } width - the width of the OffscreenCanvas\n     * @param { number } height - the height of the OffscreenCanvas\n     * @param { RenderingContextSettings } settings - Drawing attribute. For details, see {@link RenderingContextSettings}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    constructor(width: number, height: number, settings?: RenderingContextSettings);\n    /**\n     * Constructor of the canvas drawing context object, which is used to create a drawing context object.\n     *\n     * @param { number } width - the width of the OffscreenCanvas\n     * @param { number } height - the height of the OffscreenCanvas\n     * @param { RenderingContextSettings } settings - Drawing attribute. For details, see {@link RenderingContextSettings}.\n     * @param { LengthMetricsUnit } [unit] - the unit mode\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    constructor(width: number, height: number, settings?: RenderingContextSettings, unit?: LengthMetricsUnit);\n}\n/**\n * Draw an object off the screen. The drawing content is not directly displayed on the screen.\n *\n * @extends CanvasRenderer\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 8\n */\n/**\n * Draw an object off the screen. The drawing content is not directly displayed on the screen.\n *\n * @extends CanvasRenderer\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * Draw an object off the screen. The drawing content is not directly displayed on the screen.\n *\n * @extends CanvasRenderer\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * Draw an object off the screen. The drawing content is not directly displayed on the screen.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare class OffscreenCanvas {\n    /**\n     * Height of the off-screen canvas.\n     *\n     * @type { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Height of the off-screen canvas.\n     *\n     * @type { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Height of the off-screen canvas.\n     *\n     * @type { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Height of the off-screen canvas.\n     *\n     * @type { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    height: number;\n    /**\n     * Width of the off-screen canvas.\n     *\n     * @type { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Width of the off-screen canvas.\n     *\n     * @type { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Width of the off-screen canvas.\n     *\n     * @type { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Width of the off-screen canvas.\n     *\n     * @type { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    width: number;\n    /**\n     * Exports rendered content as an ImageBitmap object\n     *\n     * @returns { ImageBitmap }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Exports rendered content as an ImageBitmap object\n     *\n     * @returns { ImageBitmap }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Exports rendered content as an ImageBitmap object\n     *\n     * @returns { ImageBitmap }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Exports rendered content as an ImageBitmap object\n     *\n     * @returns { ImageBitmap }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    transferToImageBitmap(): ImageBitmap;\n    /**\n     * Creates the context from the current OffscreenCanvas.\n     *\n     * @param { \"2d\" } contextType - The context type, only \"2d\" be supported now.\n     *  \"2d\": Creates a {@link OffscreenCanvasRenderingContext2D} object representing a two-dimensional rendering context.\n     * @param { RenderingContextSettings } options - Drawing attribute. For details, see {@link RenderingContextSettings}.\n     * @returns { OffscreenCanvasRenderingContext2D } The rendering context of offscreen canvas, see {@link OffscreenCanvasRenderingContext2D}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Creates the context from the current OffscreenCanvas.\n     *\n     * @param { \"2d\" } contextType - The context type, only \"2d\" be supported now.\n     *  \"2d\": Creates a {@link OffscreenCanvasRenderingContext2D} object representing a two-dimensional rendering context.\n     * @param { RenderingContextSettings } options - Drawing attribute. For details, see {@link RenderingContextSettings}.\n     * @returns { OffscreenCanvasRenderingContext2D } The rendering context of offscreen canvas, see {@link OffscreenCanvasRenderingContext2D}.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    getContext(contextType: \"2d\", options?: RenderingContextSettings): OffscreenCanvasRenderingContext2D;\n    /**\n     * Constructor of the off-screen canvas, which is used to create an off-screen canvas object.\n     *\n     * @param { number } width - Width of the off-screen canvas.\n     * @param { number } height - Height of the off-screen canvas.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Constructor of the off-screen canvas, which is used to create an off-screen canvas object.\n     *\n     * @param { number } width - Width of the off-screen canvas.\n     * @param { number } height - Height of the off-screen canvas.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Constructor of the off-screen canvas, which is used to create an off-screen canvas object.\n     *\n     * @param { number } width - Width of the off-screen canvas.\n     * @param { number } height - Height of the off-screen canvas.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Constructor of the off-screen canvas, which is used to create an off-screen canvas object.\n     *\n     * @param { number } width - Width of the off-screen canvas.\n     * @param { number } height - Height of the off-screen canvas.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    constructor(width: number, height: number);\n    /**\n     * Constructor of the off-screen canvas, which is used to create an off-screen canvas object.\n     *\n     * @param { number } width - Width of the off-screen canvas.\n     * @param { number } height - Height of the off-screen canvas.\n     * @param { LengthMetricsUnit } [unit] - the unit mode\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    constructor(width: number, height: number, unit: LengthMetricsUnit);\n}\n/**\n * Size info.\n *\n * @interface Size\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface Size {\n    /**\n     * Defines the width property.\n     *\n     * @type { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    width: number;\n    /**\n     * Defines the height property.\n     *\n     * @type { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    height: number;\n}\n/**\n * Defines DrawingRenderingContext.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare class DrawingRenderingContext {\n    /**\n     * Get size of the DrawingRenderingContext.\n     *\n     * @returns { Size } The size of the DrawingRenderingContext.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    get size(): Size;\n    /**\n     * Get canvas of the DrawingRenderingContext.\n     *\n     * @returns { DrawingCanvas } The canvas of the DrawingRenderingContext.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    get canvas(): DrawingCanvas;\n    /**\n     * Invalidate the component, which will cause a re-render of the component.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    invalidate(): void;\n    /**\n     * Create DrawingRenderingContext with setting LengthMetricsUnit.\n     *\n     * @param { LengthMetricsUnit } [unit] - the unit mode\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    constructor(unit?: LengthMetricsUnit);\n}\n/**\n *TextTimer component, which provides the text timer capability.\n *\n * @interface CanvasInterface\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 8\n */\n/**\n *TextTimer component, which provides the text timer capability.\n *\n * @interface CanvasInterface\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n *TextTimer component, which provides the text timer capability.\n *\n * @interface CanvasInterface\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n *TextTimer component, which provides the text timer capability.\n *\n * @interface CanvasInterface\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ninterface CanvasInterface {\n    /**\n     * Construct a canvas component.\n     *\n     * @param { CanvasRenderingContext2D } context - Canvas context object. For details, see {@link CanvasRenderingContext2D}.\n     * @returns { CanvasAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Construct a canvas component.\n     *\n     * @param { CanvasRenderingContext2D } context - Canvas context object. For details, see {@link CanvasRenderingContext2D}.\n     * @returns { CanvasAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Construct a canvas component.\n     *\n     * @param { CanvasRenderingContext2D } context - Canvas context object. For details, see {@link CanvasRenderingContext2D}.\n     * @returns { CanvasAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Construct a canvas component.\n     *\n     * @param { CanvasRenderingContext2D } context - Canvas context object. For details, see {@link CanvasRenderingContext2D}.\n     * @returns { CanvasAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Construct a canvas component.\n     *\n     * @param { CanvasRenderingContext2D | DrawingRenderingContext } context - Canvas context object.\n     * @returns { CanvasAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    (context?: CanvasRenderingContext2D | DrawingRenderingContext): CanvasAttribute;\n    /**\n     * Construct a canvas component.\n     *\n     * @param { CanvasRenderingContext2D | DrawingRenderingContext } context - Canvas context object.\n     * @param { ImageAIOptions } imageAIOptions\n     * @returns { CanvasAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @atomicservice\n     * @since 12\n     */\n    (context: CanvasRenderingContext2D | DrawingRenderingContext, imageAIOptions: ImageAIOptions): CanvasAttribute;\n}\n/**\n * Provides attribute for Canvas.\n *\n * @extends CommonMethod<CanvasAttribute>\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 8\n */\n/**\n * Provides attribute for Canvas.\n *\n * @extends CommonMethod<CanvasAttribute>\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * Provides attribute for Canvas.\n *\n * @extends CommonMethod<CanvasAttribute>\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * Provides attribute for Canvas.\n *\n * @extends CommonMethod<CanvasAttribute>\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare class CanvasAttribute extends CommonMethod<CanvasAttribute> {\n    /**\n     * Event notification after the canvas component is constructed. You can draw the canvas at this time.\n     *\n     * @param { function } event\n     * @returns { CanvasAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 8\n     */\n    /**\n     * Event notification after the canvas component is constructed. You can draw the canvas at this time.\n     *\n     * @param { function } event\n     * @returns { CanvasAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Event notification after the canvas component is constructed. You can draw the canvas at this time.\n     *\n     * @param { function } event\n     * @returns { CanvasAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Event notification after the canvas component is constructed. You can draw the canvas at this time.\n     *\n     * @param { function } event\n     * @returns { CanvasAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Event notification after the canvas component is constructed. You can draw the canvas at this time.\n     *\n     * @param { VoidCallback } event\n     * @returns { CanvasAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 18\n     */\n    onReady(event: VoidCallback): CanvasAttribute;\n    /**\n     * Enable image analyzer for Canvas.\n     *\n     * @param { boolean } enable - If enable image analyzer for Canvas. The default value is false.\n     * @returns { CanvasAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @atomicservice\n     * @since 12\n     */\n    enableAnalyzer(enable: boolean): CanvasAttribute;\n}\n/**\n * Defines Canvas Component.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 8\n */\n/**\n * Defines Canvas Component.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * Defines Canvas Component.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * Defines Canvas Component.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare const Canvas: CanvasInterface;\n/**\n * Defines Canvas Component instance.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 8\n */\n/**\n * Defines Canvas Component instance.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * Defines Canvas Component instance.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * Defines Canvas Component instance.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare const CanvasInstance: CanvasAttribute;\n",
}
export default FILE;